The fundamental elements of the Python language—variable assignment, indentation, array indexing, for and while loops, if statements, functions, comments, exceptions, modules—are covered in this chapter. Although classes and object-oriented programming are also fundamental aspects of Python, these will be covered in Chapter 10.
3.1 Assignment
Python supports four forms of variable assignment: conventional, conditional, in-place, and the recently added “walrus operator.”