python if if example
Example 1: python if statement
usrinput = input(">> ")
if usrinput == "Hello":
print("Hi")
elif usrinput == "Bye":
print("Bye")
else:
print("Okay...?")
Example 2: if statement python
a = 11
b = 46
if a < b:
print('a is less than b')
else:
print('a is greater than b')