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
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")