1\say_hi

题目:编写一个function,输入名字(string)和年龄(int),输出say_hi。

答案:

def say_hi(name,age):

    return "Hi, my name is "+name+" and I'm "+str(age)+" years old."

你可能感兴趣的:(1\say_hi)