class Class:
var=1
def __init__(self,value):
self.prop=value
Object=Class(2)
print('var' in Object.__dict__)
print('prop' in Class.__dict__)
print('var' in Class.__dict__)
print(len(Object.__dict__)==1)
print(Class.__dict__)
print(Object.__dict__)
AC
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
macxsz
Highly Voted 2 years, 6 months agoseaverick
Most Recent 10 months ago