Content
Do you know 00P in prthon bros MAs bro’s 00P. 1 2 3 from types import SimpleNamespace Edef Bag(totalmoney) : vars ‘totalmoney’ :totalmoney 5 6 7 8 9 10 11 12 13 14 15 def addmoney (value): vars ‘ totalmoney’value def getmoney: return vars’totalmoney’ return SimpleNamespace ( ‘add money’: addmoney, ‘getmoney’: getmoney, ) 17 p1Bag (100) 18 19 p1.addmoney (100) print (p1.getmoney ())