Python Tutorial v3.2.5 Lesson 13.2 - Local and Global Variables

preview_player
Показать описание
1:50 Click to skip the Introduction to Lesson 13.2.
8:43 Click to hear an explanation of the global keyword.

ThePython Visualizer website can be found here:

Lesson 13.2 discusses the difference between a global variable (one created in the main program loop) and a local variable (one created in the execution of a function). Using the Python visualizer, we look at how these different variable are stored in memory and how they interact within the program. In addition, the global keyword in Python is discussed and an example is provided on how it alters the operation of a function.

This is an introductory series of Python tutorials. This course, from start to finish, is designed to help someone who has never programmed before learn the basics of coding in Python. As this series continues, we examine more advanced Python techniques, functions, and methods.

Keep in mind this tutorial is using an older version of Python, v3.2.5. You will need to click on the "View Older Releases" button to use this specific version. Using the newer versions will not be an issue at this point, but when the lesson proceeds to basic graphics, the Pygame Module we'll use does not support v3.3+ at this time.
Рекомендации по теме
Комментарии
Автор

Thanks for putting these great tutorials online Steve! I was watching them prior to taking a course in Python and they have been a huge help, *especially* the advice to use Python Visualizer!

Fortran