Skip to content

Commit

Permalink
Update instructions.md
Browse files Browse the repository at this point in the history
While returning a copy makes more sense semantically, this is:
* not tested
* encourages just using the `sorted()` function instead of the `copy().sort()` method I suspect we want to see in this exercise.
  • Loading branch information
leonqadirie authored Nov 7, 2024
1 parent 102bfb7 commit 59477d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ You should update the `list` and also `return` the name of the person who was re
For administrative purposes, you need to get all the names in a given queue in alphabetical order.


Define the `sorted_names()` function that takes 1 argument, `queue`, (the `list` of people standing in the queue), and returns a `sorted` copy of the `list`.
Define the `sorted_names()` function that takes 1 argument, `queue`, (the `list` of people standing in the queue), and returns the `sorted` `list`.


```python
Expand Down

0 comments on commit 59477d4

Please sign in to comment.