From 7bbde7b8013accbb0efa828bb0a33437f2ba0209 Mon Sep 17 00:00:00 2001 From: elric1993 <62893435+elric1993@users.noreply.github.com> Date: Sun, 27 Mar 2022 11:48:30 +0800 Subject: [PATCH 1/2] Added elif maybe as a valid answer --- hungry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hungry.py b/hungry.py index e788c0b..07573d3 100644 --- a/hungry.py +++ b/hungry.py @@ -3,5 +3,7 @@ print("eat samosa") print("eat pizza") print("eat burger") +elif hungry=="maybe" and hungry=="m" and hungry=="M": + print("drink water") else: print("do homework") From 7e8f4db7ca302a5878d042496a3a4a258a617ca4 Mon Sep 17 00:00:00 2001 From: elric1993 <62893435+elric1993@users.noreply.github.com> Date: Sun, 27 Mar 2022 13:42:16 +0800 Subject: [PATCH 2/2] Update hungry.py --- hungry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hungry.py b/hungry.py index 07573d3..57c1c6e 100644 --- a/hungry.py +++ b/hungry.py @@ -3,7 +3,7 @@ print("eat samosa") print("eat pizza") print("eat burger") -elif hungry=="maybe" and hungry=="m" and hungry=="M": +elif hungry=="maybe" or hungry=="m" or hungry=="M": print("drink water") else: print("do homework")