Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 5th, 2012  |  syntax: None  |  size: 0.71 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. original = '5005'
  2. pin = '66'
  3. balance = '10'
  4.  
  5. user_input = input("Enter account number: ")
  6.  
  7. word = ("ok")
  8.    
  9. def accountNumber():
  10.     if user_input == original:
  11.         return True
  12.    
  13.     else:
  14.         return False
  15.    
  16. user_input = input("Enter pin number: ")
  17.  
  18. def pinNumber():
  19.     if user_input == pin:
  20.         return True
  21.    
  22.     else:
  23.         return False
  24.  
  25. print ("What would you like to do next? Deposit-1, Withdraw-2, Balance-3")
  26.  
  27. choice = input("> ")
  28.  
  29. if choice == "1":
  30.     deposit = int(input("How much?"))
  31.     print(deposit + balance)
  32.  
  33. elif choice == "2":
  34.     withdraw = int(input("How much?"))
  35.     print (withdraw - balance)
  36. else:
  37.     print (balance)
clone this paste RAW Paste Data