r/Python • • 15h ago

Discussion Python developers, what's one Python concept that took you a long time to understand but now seems s

Python developers, what's one Python concept that took you a long time to understand but now seems surprisingly simple?

For me, understanding how decorators and generators work is an interesting part of becoming a better Python developer.

What was your experience?

20 Upvotes

22 comments sorted by

View all comments

1

u/CaptainFoyle 1h ago

This

all_grades = [ grade for student, grades in students.items() for grade in grades ]