Tuesday, 23 April 2024

CREAT A SIMPLE ATM MACHINE


while True:

 print("\n\n Welcome To AB Bank: \n\n Plaese Insert Your Card: ")

 name = input("Enter Your Name : ")
 print("Your Name Is", name)

 password = (1020)
 balance = (10000)
 choice = 0
 pin = int(input("Enter Your Pin : "))

 if (pin==password):
   while (choice!=4):
    print("\n\n________Menu________")
    print("1 == Balance")
    print("2 == Deposit")
    print("3 == Withdraw")
    print("4 == Cancel")
    choice = int(input("\n Enter Option : "))

    if(choice==1):
     print("Your Balance is = Rs", balance)
    elif(choice==2):
      deposit = int(input("Enter Deposit Amount,Rs: "))
      balance += deposit
      print("\n Deposit Amount Succefully: Rs",balance)
    elif(choice==3):
      withdraw = int(input("Enter Amount To Withdraw : Rs "))
      balance-= withdraw
      print("\n Withdraw Amount: Rs",withdraw)
      print("Total Balance = Rs", balance)
    elif(choice==4):
       print("\n Session Ended!!!!!")
       print('\nThanks For Using AB Bank ATM.....')
   else:
    print("Incorrect Number!!!")
    choice = input("Do You Want Again Use AB Bank ATM : (y/n)")
    if choice!=("y"):
      break

No comments:

Post a Comment

MAKE A CALANDER

  # 1.  convert calander year and month. your choice month or year , print while True :   import calendar   year = int ( input ( "P...