?
What is the output of the following code:
What is the output of the following code:
class MyClass:
x = 5
obj = MyClass()
print(obj.x)
x = 5
obj = MyClass()
print(obj.x)
Join the Discussion
Login to post a comment or share your explanation.
Login