...

/

Assignment Operators

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.

Press + to interact
left_variable = right_variable

Assigning values

Let’s ...

Access this course and 1400+ top-rated courses and projects.