Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions FunProjects/AtmMachineSimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ def __init__(self, balance):
self.balance = balance

def deposit(self, amount):
fix-atm-deposit
if amount <= 0:


global deposit_history
if amount <= 0:

if amount >= 0:

main
print("Amount must be positive.")
else:
self.balance += amount
Expand Down