demo_oper_logical3.py:
x = 5 print(not(x > 3 and x < 10)) # returns False because not is used to reverse the result
➜ begtut>python demo_oper_logical3.py
False