What is the output of the following code ?
class MyClass: def __init__(self, cost): self.cost = cost obj = MyClass(70) obj.count = 20 obj.containers = 5 print(obj.count + len(obj.__dict__))
Beginners can practice 300 + Python topic wise MCQ questions which will enhance the command on a particular topic. Experienced pythonistas can start testing their knowledge.
Code Snippets which helps in your project. Very much desirable for Python Professionals
Topic wise fundamental Python questions with answers which will clear your fundamentals and will help you in interviews
Sign Up to our Newsletter to get the latest updates.