代码示例:(标识:python_oper_logical_3)
python_oper_logical_3.py
x = 5

print(not(x > 3 and x < 10))

# returns False because not is used to reverse the result
运行结果: