We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
accidently, I removed the curly brackets from the scores and it failed.
May you please describe what makes the difference of:
scores = sorted({s[1] for s in marks}) and
scores = sorted(s[1] for s in marks)
Nested Lists
You are viewing a single comment's thread. Return to all comments →
accidently, I removed the curly brackets from the scores and it failed. May you please describe what makes the difference of: scores = sorted({s[1] for s in marks}) and scores = sorted(s[1] for s in marks)