12
Picked up a used Python book at a garage sale three weeks ago and I am completely lost on chapter 4
The book is from 2015 and the examples use Python 2 syntax that keeps throwing errors in my editor, does anyone know a good free resource that actually explains loops for someone like me who has never coded before?
2 comments
Log in to join the discussion
Log In2 Comments
the_river7d ago
Dude it's chapter 4 of a garage sale book, just google "python for loops" and you're set.
4
james_ross7d ago
lol honestly @the_river is not wrong but also like, learning from a 2015 Python 2 book in 2025 is basically torture. I saw this video from a guy named Corey Schafer where he breaks down loops step by step and it actually made sense for once. He shows real examples you can type along with. Also freecodecamp has a whole Python tutorial that covers loops in like 20 minutes with no weird ancient syntax. Just ditch that garage sale book honestly, Python 2 stuff will just confuse you more.
4