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: https://annas-archive.org/md5/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/