r/learnpython • u/Master_Limic • 2d ago
Practice Problems Math in Python
Hi,
I am currently trying to learn the relevant Python parts as a chemistry student. I think I know the basic parts (varibals/lists etc.) and I am searching for some practice problems where I can try some calculations, functions and plots with mathplotlib. Do you guys have a set of task where I can train/learn with?
Thank you very much for your help!
Limic
1
u/Ilastria 2d ago
Concerning math / computational problems „Problem Euler“ is a good source with over 1000 problems.
1
1
u/thisisappropriate 2d ago
You could grab some real world data to play with https://www.tableau.com/en-gb/learn/articles/free-public-data-sets the google example lets you download CSVs of data from their charts so you can even see what your chart should look like and some have APIs if you want to include getting APIs in your learning.
2
u/Plenty-Midnight2075 2d ago
Since you’re studying chemistry, I’d honestly skip generic coding exercises and practice with problems that look like things you might actually use.
A nice progression could be:
For each one, try making a function first, then generate a range of values with NumPy, and finally plot the result with Matplotlib.
That’ll teach you functions, loops/arrays, NumPy and plotting while also building intuition for stuff you’ll actually encounter in chemistry. Much more useful IMO than solving 50 “reverse this string” exercises.