题目:姓名格式化输出-What's Your Name?

题目要求:
将输入的姓氏和名字格式化输出,输出文本格式为:
Hello firstname
lastname
! You just delved into python.
解题代码:
def print_full_name(first,last):
print(f'Hello {first} {last}! You just delved into python.')
if __name__ == '__main__':
first_name = input()
last_name = input()
print_full_name(first_name,last_name)
文章评论