What will be printed, when following Python co,de is executed?
class person:
def init (self,id):
self.id = id arjun = person(150)
arjun. diet [‘age’] = 50
print arjun.age + len(arjun. diet )
Justify your answer.
Answers
Answered by
0
Answer:
Arjun age =52
Arjun .dict two attributes so length of it is 2
So total=2
Similar questions
Chemistry,
2 days ago
Computer Science,
2 days ago
Science,
4 days ago
Geography,
8 months ago
Math,
8 months ago