Add pause for error msg
This commit is contained in:
parent
40047fce90
commit
ce86664c3a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user