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.
На этой странице сайта вы можете посмотреть видео онлайн local and global variable scope in python | Python Tutorial for Beginners | Global Keyword in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Secret Sheru 20 Июль 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 13 раз и оно понравилось 0 зрителям. Приятного просмотра!