πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Python

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
202
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
96%
Success Rate