Python Global and Local Variables.
python uses pass by object reference, which can be difficult to understand at first.
In my simple example you pass a variable to the function, but when the function makes a change to it, it is only changing a local variable and the global variable remains unchanged.
Adding the keyword global allows the function to make changes to a global variable.
En esta página del sitio puede ver el video en línea Python Global and Local Variables de Duración hora minuto segunda en buena calidad , que subió el usuario Painless Programming 03 noviembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 85 veces y le gustó 4 a los espectadores. Disfruta viendo!