For programming beginners who want to learn Python, these are some of the better resources I know about:
-
Harvard's CS50P. The lecturer goes into a lot of detail about how basic things work, and how programmers think about how they should write something: https://cs50.harvard.edu/python/2022/
-
Learn Python 3 the Hard Way, a book by Zed Shaw that follows the older way of learning programming, where learners would type in existing programs and think about them: http://library.lol/main/B06F844F416AAEE94A19DCA4730D66BB or actually buy it at https://learncodethehardway.org/python/
-
A Data-Centric Introduction to Computing, a more rigorous book that builds up from a specially-designed learning language (Pyret) all the way to Python: https://dcic-world.org/