r/learnpython • u/dangerlopez • Feb 08 '23
Why didn't I learn this sooner?!
I started learning Python a few months ago and I feel like I'm still very much a beginner. However, I want to learn about front-end stuff so I'm gonna be starting the Odin Project this week.
To keep my Python sharp as I switch gears, I've decided to try and speed run the official Python tutorial. I figured I'd get through a lot of the beginning sections quickly, but, holy crap, I'm already learning such neat and easy features of the language!
So this made me think: what topics do you feel you learned way too late? I'll give my two examples to start:
The enumerate method: Seems super useful for looping over iterables which may contain duplicates values.
Else clauses on loops: Too many times I used and abused Booleans to decide if a loop had terminated or not, but no more!
Put your examples, whether they're beginner level like mine or more advanced, below!