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? "))
except ValueError:
print("Please only type numbers")
input("Press 'enter' to continue: ")
continue
try:
packs = float(input("How many packs do you smoke a day? "))
except ValueError:
print("Please only type numbers")
input("Press 'enter' to continue: ")
continue
break