notebook.community
Edit and run
In [5]: Money = 2000 def AddMoney(): # Uncomment the following line to fix the code: # global Money global Money Money = Money + 1 print(Money) AddMoney() print(Money)
Money = 2000 def AddMoney(): # Uncomment the following line to fix the code: # global Money global Money Money = Money + 1 print(Money) AddMoney() print(Money)
2000 2001
In [ ]: