demo_oper_logical3.py:
x = 5 print(not(x > 3 and x < 10)) # returns False because not is used to reverse the result
C:\Users\My Name>python demo_oper_logical3.py
False