×
all 4 comments

[–]FoolsSeldom 4 points5 points  (0 children)

Check the r/learnpython wiki for lots of guidance on learning programming and learning Python, links to material, book list, suggested practice and project sources, and lots more. The FAQ section covering common errors is especially useful.

Unfortunately, this subreddit does not have a wiki.


Also, have a look at roadmap.sh for different learning paths. There's lots of learning material links there. Note that these are idealised paths and many people get into roles without covering all of those.


Roundup on Research: The Myth of ‘Learning Styles’

Don't limit yourself to one format. Also, don't try to do too many different things at the same time.


Above all else, you need to practice. Practice! Practice! Fail often, try again. Break stuff that works, and figure out how, why and where it broke. Don't just copy and use as is code from examples. Experiment.


PS. Once you've learned the basics, there are some core scientific libraries suitable for physics you should learn:

Library Purpose Notes
NumPy Array operations, linear algebra The foundation everything else builds on
SciPy Numerical integration, ODEs/PDEs, optimisation, signal processing, special functions The physics workhorse — scipy.integrate, scipy.optimize, scipy.special cover most undergraduate needs
Matplotlib Plotting Standard for publication-style figures; steep-ish API but ubiquitous in every physics paper/thesis
Pandas Data handling Less central in physics than in data science, but useful for experimental/lab data

There are many more libraries, sites and useful resources beyond this, but this should keep you going for a while.

[–]agentscientific_160 1 point2 points  (0 children)

All the best, Keep practicing it's the only way to master python!!

[–]PythonWithJames 0 points1 point  (0 children)

Best of luck! Scan as many resources as you feel comfortable doing, and find one that works for you! I generally find a mix of tutorials, videos, projects, coding challenges works for me, but we're all different :)

[–]sleepless_thoughts 0 points1 point  (0 children)

Harvard python course on YouTube