Question:

What Will Be The Output Of The Following Code Snippet?

class Person:
    def __init__(self, id):
        self.id = id
 
sam = Person(100)
 
sam.__dict__['age'] = 49
 
print (sam.age + len(sam.__dict__))

 

Answers:


Keywords:

© 2017 QuizBucket.org