¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Generators versus global variables
Do generators allow the iteration of global variable for ie (i) without changing the value of the global variable that has been set?
1 Respuesta
+ 5
Global variables are exactly that, global. Changing them at any point in your program changes them in the global scope.