We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c5b69 commit cfe77ccCopy full SHA for cfe77cc
Roadmap/02 - FUNCIONES Y ALCANCE/python/saezMD.py
@@ -80,6 +80,29 @@ def all(iterable):
80
all("home")
81
# all(0) ; FALSE
82
83
+# Variables Globales y locales
84
+
85
+counter = 10
86
87
+def restartCounter():
88
+ global counter
89
+ counter = 0
90
91
92
+print(f'counter before is {counter}')
93
+restartCounter()
94
+print(f'counter after is {counter}')
95
96
97
+value = 10
98
99
+def func10():
100
+ value = 20
101
+ print(f'Inside value: {value}')
102
103
104
+func10()
105
+print(f'Outside value: {value}')
106
107
"""
108
DIFICULTAD EXTRA (opcional):
0 commit comments