I have this code:
donos=[]
def calcula_media():
lista_dicionario= [1,2,3]
donos.extend(lista_dicionario)
def funcao2():
print donos
How can I do to use the global variable in the 2nd function using what I used in 1º to make it extend
, that is, get the [1,2,3] in the 2nd function?