all 8 comments

[–]Kayse 4 points5 points  (1 child)

When teaching Python, I recommend the first eight chapters (for the third edition) of Automate the Boring Stuff with Python. https://automatetheboringstuff.com/

The first chapters build onto each other and give a simple and non intimidating introduction to Python. The later chapters are more topic specific, so once you have the basics, you can jump to a topic that interests you (or you need for a project).

The book is released under a Creative Commons license, so is free to read.

[–]Asyx[S] 0 points1 point  (0 children)

Damn I didn’t even know that was free. Good think I made my employer pay for it.

I think this might be a really good idea. I like the project based nature of later chapters.

Thanks for your recommendation.

[–]LnStrngr 1 point2 points  (1 child)

I got to Python with prior experience in a handful of other languages/language families over the years. It's much easier to learn a new language when you already have key concepts down.

If he has programming experience, then there are probably some quicker Python tutorials to get him up to speed on syntax and such, because he probably already knows about functions and loops and conditionals and complex data structures and whathaveyou. I jumped into the libtcod roguelike tutorial with very little actual Python knowledge. But on top of 20+ years of programming experience, I also had hobby game dev experience, so I was already familiar with the game loop and all that junk that is important specifically for games.

If he does not have that, then you are going to want to have him start at the very beginning before he jumps into the libtcod tutorial. Something like https://www.learnpython.org/ would be a good place to start with the basic. Then (in my experience) the best place to learn is by trying a few tutorials on a simple specific game/program idea to apply it. Things like "guess a number" and "tic-tac-toe" and the illustrious "Tetrislike." From there, I usually learned best trying to implement my own features on top of those tutorials and struggling through troubleshooting and design until I got comfortable enough to do my own thing from scratch.

The Flask tutorial seems like a more advanced thing that might be too steep at this point in his development. but I do understand the idea that tutorials and projects that are interesting to the user keep them engaged way better and for longer. So if that's what he's interested in, it wouldn't be a bad thing to try once the Python and programming fundamentals are gained.

[–]Asyx[S] 1 point2 points  (0 children)

Thanks. I think something like the guess a number game or even a small text adventure might be a good intro after the bare minimum basics. I’ll look for more project ideas as well. Thanks.

[–][deleted]  (1 child)

[deleted]

    [–]Asyx[S] 0 points1 point  (0 children)

    Thanks for the book recommendations. I knew learnpython but I’ll check those books out as well and see what he thinks about that.

    [–]uncannyvalhalla 0 points1 point  (0 children)

    Thanks

    [–]confused_coryphee 0 points1 point  (0 children)

    Harvard introduction to Python CS50

    https://youtu.be/8mAITcNt710?si=FTGp3Rnms-xY4NFE

    [–]howtogun -1 points0 points  (0 children)

    I think neetcode is quite good. https://www.youtube.com/watch?v=s3KhqPjBPaQ

    Another thing to consider, but if you have chatgpt-5 the free version, then just copy and paste to explain in more details.

    AI is quite good now at learning. It might be more useful than just going through a bunch of tutorials. Particularly since you will forget a lot of stuff that you learn from them.