Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. money = input("How much money do you have? ")
  2. def checkMoney(money):
  3. '''
  4. (str) -> (str)
  5.  
  6. Checks to make sure that there are no weird characters.
  7. '''
  8. for x in money:
  9. if x not in numbers:
  10. money = input("How much money do you really have? ")
  11. checkMoney(money);
  12.  
  13. return(money)
  14.  
  15. checkMoney(money);
  16. print(money)
  17. money = float(money)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement