I want to make a function that adds a specific word in front of every string in the array. At the end I want the array changed. I have this code:
def make_great(magicians):
"""Change magicians"""
for magician in magicians:
magician = "the Great" + magician
magicians = ["hudini", "angel", "teller", "anderson", "copperfield"]
make_great(magicians)
print(magicians)
This code doesn't change the array. How can I make my function work?