Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- original = '5005'
- pin = '66'
- balance = '10'
- user_input = input("Enter account number: ")
- word = ("ok")
- def accountNumber():
- if user_input == original:
- return True
- else:
- return False
- user_input = input("Enter pin number: ")
- def pinNumber():
- if user_input == pin:
- return True
- else:
- return False
- print ("What would you like to do next? Deposit-1, Withdraw-2, Balance-3")
- choice = input("> ")
- if choice == "1":
- deposit = int(input("How much?"))
- print(deposit + balance)
- elif choice == "2":
- withdraw = int(input("How much?"))
- print (withdraw - balance)
- else:
- print (balance)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement