python if statement or and and code example
Example 1: python if statement
usrinput = input(">> ")
if usrinput == "Hello":
print("Hi")
elif usrinput == "Bye":
print("Bye")
else:
print("Okay...?")
Example 2: pythone if
a = 200
b = 33
c = 500
if a > b and c > a:
print("Both conditions are True")