Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 29, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a7ad00c4dc39664b7fbe97aca437c2ac to your computer and use it in GitHub Desktop.
Save parzibyte/a7ad00c4dc39664b7fbe97aca437c2ac to your computer and use it in GitHub Desktop.
mi_variable_global = 20
def una_funcion():
mi_variable_global = 10 #Ahora la variable es 10, no 20
print("Una función, la variable global es: " + str(mi_variable_global))
def otra_funcion():
print("Otra función, la variable global es: " + str(mi_variable_global))
una_funcion()
otra_funcion()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment