Local and global variables in Python

Publicado el: 21 agosto 2023
en el canal de: Python Morsels
816
21

Within a function in Python, you can read from global variables and read from or write to local variables. Within each function, each variable name is either local or global (but not both).

Read an article version of this video at https://pym.dev/local-and-global-vari...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Reading global variables
00:34 Assigning to local and global variables
01:41 Variable shadowing
02:37 Within a function, each variable is either local or global
03:42 Summary


En esta página del sitio puede ver el video en línea Local and global variables in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Python Morsels 21 agosto 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 816 veces y le gustó 21 a los espectadores. Disfruta viendo!