From 1602da268b6ba4cacbc53e8a9a1ca185c4e309b1 Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Tue, 19 Feb 2019 13:17:20 -0500 Subject: [PATCH] Update ex43.py good_pod strings need to be formatted so they actually print the guess number vs. printing "{guess}". --- ex43.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ex43.py b/ex43.py index ee28ed0..8cc1380 100644 --- a/ex43.py +++ b/ex43.py @@ -185,13 +185,13 @@ def enter(self): if int(guess) != good_pod: - print("You jump into pod {guess} and hit the eject button.") + print(f"You jump into pod {guess} and hit the eject button.") print("The pod escapes out into the void of space, then") print("implodes as the hull ruptures, crushing your body") print("into jam jelly.") return 'death' else: - print("You jump into pod {guess} and hit the eject button.") + print(f"You jump into pod {guess} and hit the eject button.") print("The pod easily slides out into space heading to") print("the planet below. As it flies to the planet, you look") print("back and see your ship implode then explode like a")