Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tracks/python/exercises/high-scores/mentoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Another variation of this solution includes the start at -1 for slicing the resu
return sorted(scores)[-1:-4:-1]
```

Since immutability has not yet been introduced, solutions that mutate the original list (`scores.pop()` or `scores.sort()`) are reasonable and acceptable. However, take the opportunity to start introducing this concept in your comments.

### Common Suggestions

- Use **`sorted()`** over **`sort()`**. `sorted()` returns a _**copy**_ , `sort()` _**mutates in place**_.
Expand Down