Python Variables
Names, assignment, rebinding, and mutability intuition.
Focus: python variables assignment
Practice in the browser IDE
Runnable sample for this lesson loads into the editor — press Run when you’re ready.
Variables are names bound to objects — multiple names can reference the same object until you rebind.
In this lesson
- Valid identifiers and naming conventions.
- Difference between rebinding a name and mutating an object.
- Why
id()andisoccasionally matter for debugging.
Tip: follow lessons top-to-bottom — later chapters assume earlier ones.
Discussion
Questions, corrections, and tips help everyone reading this page.
0 comments
Add a comment
No comments yet — start the thread.