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

print(x > 3 and x < 10)

# returns True because 5 is greater than 3 AND 5 is less than 10
运行结果: