Python Compound Arithmetic Operators - Programming Example

preview_player
Показать описание
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!
Рекомендации по теме