Created
October 29, 2019 19:41
-
-
Save parzibyte/a7ad00c4dc39664b7fbe97aca437c2ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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