Lesson 14 of 26 · about 15 min
Mutability, aliasing and cloning
Two names can refer to the same list. Change it through one name and the other sees the change too. Copy the list when you want independence.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- Alias
- Clone (copy)
- Side effect
Free to try in F02 Programming 1: Thinking in Steps:
The first 3 lessons of every course are free, no account needed.