From c1247d1c16170bf9dbca908b45bc4200365cb1ab Mon Sep 17 00:00:00 2001 From: Karine Davis-Edwards <43013187+karine-de@users.noreply.github.com> Date: Mon, 22 Oct 2018 14:19:34 +0100 Subject: [PATCH] Update ch3_challenge6.py --- .../challenges/ch3_challenge6.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/part_I/introduction_to_programming/challenges/ch3_challenge6.py b/part_I/introduction_to_programming/challenges/ch3_challenge6.py index f1bad5d..07a3220 100644 --- a/part_I/introduction_to_programming/challenges/ch3_challenge6.py +++ b/part_I/introduction_to_programming/challenges/ch3_challenge6.py @@ -1,7 +1,9 @@ -age = 64 -retirement = age - 65 +age = 65 +retirement = 65 - age -if retirement < 10: +if retirement < 10 and retirement >0: print("You get to retire soon.") -else: +elif retirement >=10: print("You have a long time until you can retire!") +else: + print ("Enjoy your retirement!")