We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfc573d commit ebaba49Copy full SHA for ebaba49
1 file changed
atm_project.py
@@ -15,6 +15,7 @@
15
# 7. End
16
17
# 1. Set-up a professional logging
18
+
19
logging.basicConfig(
20
filename="atm_transactions.log",
21
level=logging.INFO,
@@ -58,7 +59,7 @@ def atm_withdrawal(balance):
58
59
# example usage / Perform the ATM Transaction
60
def main():
61
current_balance = 5000.0
- print("--- Welcome to the 2026 Python ATM ---")
62
+ print("--- Welcome to my 2026 Python ATM ---")
63
64
while True:
65
print(f"\nCurrent Balance: ${current_balance:.2f}")
@@ -74,6 +75,5 @@ def main():
74
75
print("Invalid selection.")
76
77
-# Perform the ATM Withdrawal
78
-atm_withdrawal(current_balance, 0)
79
-log_transaction("withdrawal", 0, current_balance)
+if __name__ == "__main__":
+ main()
0 commit comments