- if
- ==
if statement again
examples/boolean/conditionals.py
x = 2 if x == 2: print("it is 2") else: print("it is NOT 2") if x == 3: print("it is 3") else: print("it is NOT 3") # it is 2 # it is NOT 3
x = 2 if x == 2: print("it is 2") else: print("it is NOT 2") if x == 3: print("it is 3") else: print("it is NOT 3") # it is 2 # it is NOT 3