Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- money = input("How much money do you have? ")
- def checkMoney(money):
- '''
- (str) -> (str)
- Checks to make sure that there are no weird characters.
- '''
- for x in money:
- if x not in numbers:
- money = input("How much money do you really have? ")
- checkMoney(money);
- return(money)
- checkMoney(money);
- print(money)
- money = float(money)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement