else option in python code example
Example 1: if statement python
#a statement that checks if a condition is correct
#example:
x=5
if x == 5:
print("x is 5")
else:
print("x is not 5")
Example 2: if statement python
if (condition):
result
else:
result