Untitled
unknown
python
2 years ago
1.3 kB
4
Indexable
Never
print("Hello!,Welcome to SBI Bank") print("Please! Swipe the Card.") ATM_PIN=[4590] balance=5000 pin=int(input("Enter the pin here:-")) if pin==4590: print("ATM Pin Correct!") print(""" 1.Balance Enquiry 2.Withdral Money 3.Deposit Money 4.Change your pin 5.Transfer Money""") trans=int(input(" Choose your Transcation!\n")) if trans==1: print(f"your total balance is {balance}") if trans==2: withdrawal_money=int(input("Enter the amount you want to withdral!\n")) if withdrawal_money<=balance: balance=balance-withdrawal_money print(f"{withdrawal_money}is debited from your account!\n Please! Collect your cash") else: print("Please! Enter the valid amount!") elif trans==3: deposit_money=int(input("Enter the amount you want to deposit!\n")) balance=balance+deposit_money print("Your amount deposit sucessfully") if trans==4: pin=int(input("Enter the old pin")) if pin==ATM_PIN: new_pin=(int(input("Enter the New pin"))) ATM_PIN.replace(new_pin) else: print("""wrong pin! try again!""") else: print("Thank for using SBI bank" ) else: print("""Wrong ATM Pin! Try Again""")