python if statement with and and or code example
Example 1: python if statement
usrinput = input(">> ")
if usrinput == "Hello":
print("Hi")
elif usrinput == "Bye":
print("Bye")
else:
print("Okay...?")
Example 2: python if ?
a,b=5,7
x = a > b ? 10 : 11