When I call show_magicians, their names are printed, but I want, when I call make_great, have their name + the Great added.
def make_great(magician_names):
"""Adds the phrase 'the Great' to each magician's name."""
for name in magician_names:
# I want to add 'the Great' to each item in the list
# magician_names so that when I call show_magicians,
# the items in the list will have 'the Great' added
# to them.
def show_magicians(magician_names):
"""Print the names of magicians in a list."""
for name in magician_names:
print(name.title())
magician_names = ['peter', 'maria', 'joshua']
show_magicians(magician_names)
make_great(magician_names)
show_magicians(magician_names)