I recommend using Python interactive mode to experiment with Python to test your ideas and see if they compile and run. This is how to get it started.
Support me by buying from Amazon through my affiliate link: https://amzn.to/2FBNVwA
Here's my Patreon account if you want to give me money: / realphysics
Other ways to support Real Physics: • How to Support Real Physics
Playlist: • Theory of Python
Thank you!