You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to add that the "comprehension" version works when you know exactly what you are receiving, whilst the first version works whatever you receive, as long as the "key" is the first element of the tuple of course.
The learning is more about the power of "comprehensions".
I had this pretty (useful) complicated function:
Instead, using a comprehension list does the same job and is easy to understand....Never too late to improve!
The text was updated successfully, but these errors were encountered: