-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (25 loc) · 693 Bytes
/
Copy pathmain.py
File metadata and controls
28 lines (25 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from balance import show_balance
from deposit import deposit_money
from withdraw import withdraw_money
from statement import show_statement
while True:
print("\n--- ATM Menu ---")
print("1. Check Balance")
print("2. Deposit")
print("3. Withdraw")
print("4. Statement")
print("5. Exit")
choice = input("Enter your choice: ")
if choice == "1":
show_balance()
elif choice == "2":
deposit_money()
elif choice == "3":
withdraw_money()
elif choice == "4":
show_statement()
elif choice == "5":
print("Thank you for using ATM")
break
else:
print("Invalid choice")