IF -ELSE
IF-ELSE STATEMENT
z=20
if z==20:
print("z is 20")
print(z)
else:
print ("z=20")
"C:\Users\darul Haram\PycharmProjects\pythonProject2\venv\Scripts\python.exe" "C:/Users/darul Haram/PycharmProjects/pythonProject2/venv/Lib/if -else.py" z is 20 20 Process finished with exit code 0
z=20
if z==10:
print("z is 20")
print(z)
else:
print ("z=20")
"C:\Users\darul Haram\PycharmProjects\pythonProject2\venv\Scripts\python.exe" "C:/Users/darul Haram/PycharmProjects/pythonProject2/venv/Lib/if -else.py" z=20 Process finished with exit code 0
Comments
Post a Comment