This is a preview of the video course, "Working With Global Variables in Python Functions." A global variable is a variable that you can use from any part of a program, including within functions. Using global variables inside your Python functions can be tricky. You’ll need to differentiate between accessing and changing the values of the target global variable if you want your code to work correctly.
This is a portion of the complete course, which you can find here:
https://realpython.com/courses/global...
The rest of the course covers:
Access, create, and modify global variables within your functions with the globals() function
Understanding mutability
Deciding when to use globals
Explore strategies to avoid using global variables in Python code
Auf dieser Seite können Sie das Online-Video Using Global Variables in Python Functions mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Real Python 02 May 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,438 Mal angesehen und es wurde von 65 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!