Source Code:
(back to article)
x = 2 if x > 3: print("x is greater than 3") elif x == 3: print("x is equal to 3") else: print("x is less than 3")
Result:
Report an issue