Atm-functionalities(nested if)
In this project we will create a program which shows how an atm machine works related to basic functions as show account balance,cash withdraw,cash deposit and pin change.
pin='1234'
account_balance=50000
account_number=4567893210print('Welcome to XYZ atm')
print('''1. Show account balance.
2. Cash withdrawal
3. Cash deposit
4. Pin Change''')
ch=input('enter your choice:')if ch=='1':
x=input('enter your pin:')
if pin==x:
print(f'you have {account_balance} in your account.')
else:
print('you have entered wrong pin.')The KBC Game
Last updated