📜  输入与函数 - 任何代码示例

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

代码示例1
def smaller_num(x,y):
    if x>y:
        number= y
    else:
        number= x
    return number

k=smaller_num(x= input("Enter first number:-") ,y= input("Enter second number:-"))

print("The smaller number between x  & y  is ", k)