Home / Programming MCQs / Python MCQs / Question

T

Tanmay • 2.43K Points
Master

Q. What is the output of the following code?

Code:
class Library:
  def practice(self, language='Java'):
    print(language)
  
l = Library()
l.practice('Python')
(A) Python
(B) Java
(C) language
(D) Python Java

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.