Assignment Operators Flashcards
Are used to assign a value to a variables or any values that
we have in Python.
Assignment Operators
Assigns values from the right side operand to left side
operand. =
AND
It adds right operand
to the left operand and assign the
result to left operand. +=
Add AND
It subtracts right
operand from the left operand and
assign the result to left operand. -+
Subtract AND
It multiplies right
operand with the left operand and
assign the result to left operand. *=
Multiply AND
It divides left
operand with the right operand
and assign the results to left
operand. /=
Divide AND
It takes modulus
using two operands and assigns
the result to left operand. %
Modulus AND
Performs
exponential (power) calculation on
operators and assigned value to
the left operand. **=
Exponent AND
It performs
floor division on operators and
assign value to the left operand. //=
Floor Division AND