def deposit(amount): global balance balance += amount def withdraw(amount): global balance balance -= amount global balance balance = 1000; deposit(27) print(balance) withdraw(400) print(balance)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)