From 30123b6fcfd137f3f4fefd283b1c2a9a5b13a94a Mon Sep 17 00:00:00 2001 From: Narendr9 <109784564+Narendr9@users.noreply.github.com> Date: Fri, 22 Jul 2022 15:46:22 +0530 Subject: [PATCH] Update hungry.py Nested if placed f --- hungry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hungry.py b/hungry.py index e788c0b..421fe89 100644 --- a/hungry.py +++ b/hungry.py @@ -1,7 +1,9 @@ hungry=input("are you hungry?") if hungry=="yes" and hungry=="Y" and hungry=="y": + if hungry=="y" : print("eat samosa") print("eat pizza") + else: print("eat burger") else: print("do homework")