Core Concept Mastery • Python Visual Series Module
Assignment operators store or update values in variables. The basic assignment operator (=) binds a value to a name, while compound assignment operators like +=, -=, *=, /=, //=, %=, and **= perform an arithmetic operation and reassign the result in one step. For example, x += 5 is shorthand for x = x + 5. These operators make your code shorter and more readable.