Compound operators are a shorthand way to update the value of a variable
Addition assignment: +=
Subtraction assignment -=
Multiplication assignment: *=
Division assignment: /=
Modulo assignment: %=
For example: x = x + 5 is equivalent to x += 5
Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!
On this page of the site you can watch the video online Python Compound Arithmetic Operators - Programming Example with a duration of hours minute second in good quality, which was uploaded by the user Appficial 27 August 2021, share the link with friends and acquaintances, this video has already been watched 1,678 times on youtube and it was liked by 13 viewers. Enjoy your viewing!