I used mostly the pygame library to give every set of code a function. I wrote the physics of the ball and basically everything that makes the game function.
Check out the source code of the game on my github if you are interested,
Python
Freelance developer
Aug 2018 — forever