demo_oper_logical1.py:
x = 5 print(x > 3 and x < 10) # returns True because 5 is greater than 3 AND 5 is less than 10
➜ begtut>python demo_oper_logical1.py
True