Test while-else.

This commit is contained in:
Captain ALM 2022-11-30 18:57:25 +00:00
parent 3b7b4a6dd3
commit 088d603607
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

12
main.py
View File

@ -1,5 +1,7 @@
#1 Line Ifs #Test While else
x = None x = 0
if x is None: print("Oh") while x < 10:
#x = " " print(x)
print("Why") if x is None else print ("No") x += 1
else:
print("Bye")