Advertisement
Guest User

Untitled

a guest
Oct 5th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement