Computer Science, asked by mrgoodb62, 4 days ago

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 klalwani774
0

Answer:

Arjun age =52

Arjun .dict two attributes so length of it is 2

So total=2

Similar questions