Assignment Operators

Explore Python's assignment operators, including their usage and purpose, and perform various types of assignments on variables.

We have already been using the assignment operator in previous lessons. Assignment operators are used to assign values to variables. The most basic assignment operator is =, which assigns the value on the right to the variable on the left. The right-hand side of an assignment does not need to be a variable; it can be any expression or value.

Get hands-on with 1400+ tech skills courses.