Commit f70987c
committed
Fix sorting of shells & users
* The return value didn't sort the shells,
sorted(shells.list,key=len) does nothing, as the length of each
tuple is 2: the key & the value, while you obviously wanted the length
of the user list
* The exercise also requested listing the usernames '(sorted
alphabetically)'1 parent 4f956bd commit f70987c
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments