def make_great(magician_names):
	"""Adds the phrase 'the Great' to each magician's name."""
	while magician_names:
		name = magician_names.pop()
		add_great = name + " the Great"
		magician_great.append(add_great)
		
        
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']
magician_great = []
show_magicians(magician_names)
show_magicians(magician_great)
make_great(magician_names[:])
show_magicians(magician_names)
show_magicians(magician_great)
