The increase and decrease value (-= and +=)

You will notice the -= and += symbols in this code. These symbols are used as shortcuts to increase or decrease the value of something. In the code for moving the paddles, we use these symbols to add or subtract values when the paddle keys are pressed. Both the -= and += symbols are very important for setting the proper paddle position each time the paddles are moved by the user.

Get Python Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.