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? "))
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user