From ce86664c3a1a451103d46f6ada4ca6be71778332 Mon Sep 17 00:00:00 2001 From: Logen Kain Date: Mon, 17 Aug 2020 12:35:10 -0400 Subject: [PATCH] Add pause for error msg --- cost-of-smokes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cost-of-smokes.py b/cost-of-smokes.py index 0e09983..10c92a6 100644 --- a/cost-of-smokes.py +++ b/cost-of-smokes.py @@ -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