第四周第二次作业

时间:2022-11-30 14:06:46

8-1消息:

def display_message():
print ( " I learned function in this chapter " )

display_message ()


输出结果:

第四周第二次作业


8-2喜欢的图书:

def favorite_book( title):
print ( " One of my favorite books is " + title)

favorite_book ( " Alice in Woderland " )


输出结果:

第四周第二次作业


8-9魔术师:

def show_magicians( name_list):
for magician in name_list:
print (magician)

name_list = [ " name1 ", " name2 ", " name3 ", " name4 ", " name5 " ]
show_magicians (name_list)


输出结果:

第四周第二次作业