0
I’m developing some book exercises "Intensive Course of Python" but I stopped in the proposed 8.10 exercise:
EX: 8.10 - Great magicians: Start with a copy of your program from Exercise 8.9. Write a function named make_great() that modifies the list of magicians adding the expression the Great to each magic. Call show_magicians() to see if the list has actually been modified.
My 8.9 exercise program went like this:
print("===================== EX-01 ================")
magicos = ["Mario", "João", "Maria"]
'''Exibe uma saudação aos magicos'''
def nomes_dos_magicos(nome):
for magico in magicos:
print("Olá,", magico)
saudacao = nomes_dos_magicos(magicos)
My difficulty is in storing that new "Big" value before the names inside the original list and not just in the function
Ahh yes, in case that change to "The great" would not be applied to the original list definitively, and yes, in the function call, for example: when I called the greeting function of the previous exercise that modification should also be there because the original list has been modified
– user77295