Add pause for error msg

This commit is contained in:
Logen Kain 2020-08-17 12:35:10 -04:00
parent 40047fce90
commit ce86664c3a

View File

@ -12,12 +12,14 @@ while True:
cost = float(input("How much does a pack cost? ")) cost = float(input("How much does a pack cost? "))
except ValueError: except ValueError:
print("Please only type numbers") print("Please only type numbers")
input("Press 'enter' to continue: ")
continue continue
try: try:
packs = float(input("How many packs do you smoke a day? ")) packs = float(input("How many packs do you smoke a day? "))
except ValueError: except ValueError:
print("Please only type numbers") print("Please only type numbers")
input("Press 'enter' to continue: ")
continue continue
break break