local and global variable scope in python | Python Tutorial for Beginners | Global Keyword in Python

Publicado el: 20 julio 2021
en el canal de: Secret Sheru
13
0

In this video we are going to see what are the scopes of variables in python.

There are two types of variables: global variables and local variables.
The scope of global variables is the entire program whereas the scope of local variable is limited to the function where it is defined.

Local variables can only be reached within their scope(like func() above).
A global variable can be used anywhere in the program as its scope is the entire program.


En esta página del sitio puede ver el video en línea local and global variable scope in python | Python Tutorial for Beginners | Global Keyword in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Secret Sheru 20 julio 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 13 veces y le gustó 0 a los espectadores. Disfruta viendo!