python编程:从入门到实践课后习题8-10

def make_great(old_magicians, new_magicians):
    while old_magicians:
        new_name = "the great " + old_magicians.pop()
        new_magicians.append(new_name)


def show_new_magicians(new_magicians):
    print("this is the new list of magicians: ")
    for new_magician in new_magicians:
        print(new_magician)
        

old_magicians = ['jolin', 'liuqian', 'lubov']
new_magicians = []

make_great(old_magicians,new_magicians)
show_new_magicians(new_magicians)

你可能感兴趣的:(python编程:从入门到实践课后习题8-10)