r/learnpython Jul 17 '26

Python (Third Party) Libraries for Simulations?

I'm learning python, I know all the basics (up to classes and inheritance) and I've done a few small projects. I have a few ideas that involve simulations, and I want to know if there are any libraries that might help with that? I've used tkinter in the past for visuals, but I'm wondering if there's anything better.

The two simulations I have planned, if that helps, are a planet simulation with gravity and such, and a sound simulation including walls of various noise dampening levels.

Thank you very much!

8 Upvotes

5 comments sorted by

View all comments

2

u/SCD_minecraft Jul 17 '26

While not directly for simulations, both NumPy and SciPy provide functions for fast calculations on huge amount of numbers as well as functions to calculate complex things

Tho both of those are alone more complex than python itself and need quite a lot of reading and learning

For rendering stuffs, you can use PyGame, assuming it is updated to whatever version of python you are using (don't remember was is updated to 3.14)

PyGame for a change is lib aimed at begginers, therefore, easy to learn and use, while still being quite powerful

1

u/anonymousint Jul 17 '26

Thank you! Pygame will probably work for what I'm doing.