The thing I love about python is it's elegance; and I thing that is partially due to its syntactic sugar. Between list comprehensions, destructuring, enumerators, generators with yield, and a bunch more, what is your favorite

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years ago

You're right. Having just yield sth in a function instead of defining the data structure is such a game changer.

  • source
  • parent