From 088d6036079fef64b9e0ac67e6f2b766daf4b9d5 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Wed, 30 Nov 2022 18:57:25 +0000 Subject: [PATCH] Test while-else. --- main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 0a2a552..f192329 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,7 @@ -#1 Line Ifs -x = None -if x is None: print("Oh") -#x = " " -print("Why") if x is None else print ("No") +#Test While else +x = 0 +while x < 10: + print(x) + x += 1 +else: + print("Bye")