Assignment operators are used to perform an operation on a variable AND store the output into the manipulated variable.
In this section, you will learn how to:
Copy the following code on the left in your IDE to execute the process shown in the image on the right.
x = 5 x += 5
print (x)
x = 5 x -= 2 print (x)
x = 5 x *= 3 print (x)
x = 5 x /= 4 print (x)
x = 5 x %= 6 print (x)
x = 5 x **= 9 print (x)