Python Tutorial v3.2.5 Lesson 23.3 - List Mutability

preview_player
Показать описание
1:17 Skip the introduction to Lesson 23.3
3:39 Skip to list creation and a demonstration of list mutability.
7:17 Skip to the tracing of the code through the visualizer.
There is no Challenge Program for Lesson 23.3

Lesson 23.3 discusses the important topic of list mutability. Mutability is the ability of data types and variables to be changed. Strings, for example, are considered immutable. This means that I cannot change individual segments of a string (for example, changing the word 'House' to 'Mouse' simply by changing the first letter of the word). Rather, I have to change the entire string. Lists are mutable. This means that using index location, I can change individual elements of a list. Also discussed in this lesson is the fact that list variables are "objects", giving them global access even within functions.

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.
Рекомендации по теме
Комментарии
Автор

Have you wrote a book about this that i can buy? really like the way you sort everything through!!!

zibochen