Saved Bookmarks
| 1. |
What will be printed, when following Python code is executed?class person:def init (self,id):self.id = id arjun = person(150)arjun. diet [‘age’] = 50print arjun.age + len(arjun. diet )Justify your answer. |
|
Answer» 52 arjun.age = 50 arjun.dict has 2 attributes so length of it is 2. So total = 52. |
|