how to write an if statement in python and then code 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 = 33
b = 200
if b > a:
print("b is greater than a")