ATM PROJECT---PYTHON MINI PROJECT
print("WELCOME TO MADHURIMA SMALL PROJECT ON BANK ATM")
restart=('Y')
chances =3
balance=999.12
while chances >=0:
pin=int(input('Please enter 4 digit pin: ' ))
if pin == (1234):
print("please enter your pin correctly")
print("please enter 1 for your BALANCE ")
print("please enter 2 for WITHDRAWL ")
print("please enter 3 for your PAY IN ")
print("please enter 4 for your RETURN CARD\n ")
while restart not in('n' ,'NO','no','N'):
print("please enter your pin correctly")
print("please enter 1 for your BALANCE ")
print("please enter 2 for WITHDRAWL ")
print("please enter 3 for your PAY IN ")
print("please enter 4 for your RETURN CARD\n ")
option =int(input("what WOULD YOU LIKE TO CHOOSE ?: "))
if option==1:
print("BALANCE IS RS",balance)
restart=input("WOULD YOU LIKE TO GO BACK ? : ")
if restart in ('n' ,'no','NO','N'):
print("thhank you")
break
elif option==2:
option2=('Y')
withdrawal=float(input("HOW MUCH YOU LIKE TO WITHDRAWL ? 10,20,40,60,80,100 for other enter 1:"))
if withdrawal in[10,20,40,60,80,100]:
balance=balance-withdrawal
print("\\n YOUR BALANCE IN NOW Rs",balance)
restart=input("WOULD YOU LIKE TO GO BACK? :")
if restart in ('n', 'no', 'NO', 'N'):
print("thhank you")
break
elif withdrawal!=[10,20,40,60,80,100]:
print("INVALID AMOUNT PLEASE RETRY \n")
restart("Y")
elif withdrawal==1:
withdrawal=float(input("PLEASE ENTER THE DESIRED AMOUNT"))
elif option==3:
pay_in=float(input("HOW MUCH YOU LIKE TRO PAY IN ? : "))
balance=balance+pay_in
print("\n YOUR BALANCE IS NOW RS ",balance)
restart=input("WOULD YOU LIKE TP GO BACK")
if restart in ('n','no','N','NO'):
print("--------------THANK -- YOU-------------")
break
elif option==4:
print("-------PLEASE WAIT FOR YOU CARD--------")
print("--------THANK YOU FOR SERVICE---------")
break
else:
print("PLEASE---ENTER----CORRECT----NUMBER.......\n")
restart=('y')
elif pin !=('1234'):
print("-----------------------INCORRECT------------------PASSWORD------------------")
chances=chances-1
if chances==0:
print("\\n NO------MORE-----TRIES-----")
break
-------------------------------------------------------------------------------------------------------------------------------------------------------
C:\ProgramData\Anaconda3\python.exe "C:/Users/Madhurima Moulik/ATMinsta.py"
WELCOME TO MADHURIMA SMALL PROJECT ON BANK ATM
Please enter 4 digit pin: 1234
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?: 1
BALANCE IS RS 999.12
WOULD YOU LIKE TO GO BACK ? : y
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?: 2
HOW MUCH YOU LIKE TO WITHDRAWL ? 10,20,40,60,80,100 for other enter 1:100
\n YOUR BALANCE IN NOW Rs 899.12
WOULD YOU LIKE TO GO BACK? :y
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?: 3
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?: 4
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?: 4
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?: 3
please enter your pin correctly
please enter 1 for your BALANCE
please enter 2 for WITHDRAWL
please enter 3 for your PAY IN
please enter 4 for your RETURN CARD
what WOULD YOU LIKE TO CHOOSE ?:
Process finished with exit code -1
Comments
Post a Comment