📌  相关文章
📜  2)编写一个函数,检查一个数字是否在给定范围内(包括高和低)python代码示例

📅  最后修改于: 2022-03-11 14:47:06.296000             🧑  作者: Mango

代码示例2
def ran_check(num,low,high):
    
    if num in range(low,high):
        print(num ,"is in a range")
    else:
        print(num ,"is out of the range")
ran_check(100,90,200)