if else function in python input code example
Example 1: if statement python
number = 5
if number == 5:
print("number equals 5")
else:
print("number does not equal 5")
Example 2: if else python
if condition:
result
elif condition:
result
else:
result