Skip to content

Fix sorting of shells & users#34

Open
aelmahmoudy wants to merge 1 commit intoreuven:masterfrom
aelmahmoudy:e12b3_shells_and_users
Open

Fix sorting of shells & users#34
aelmahmoudy wants to merge 1 commit intoreuven:masterfrom
aelmahmoudy:e12b3_shells_and_users

Conversation

@aelmahmoudy
Copy link

@aelmahmoudy aelmahmoudy commented Feb 28, 2026

  • 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)'

@aelmahmoudy aelmahmoudy force-pushed the e12b3_shells_and_users branch from 9167690 to f70987c Compare February 28, 2026 23:59
@aelmahmoudy aelmahmoudy changed the title The exercise also requested listing the usernames '(sorted alphabetically)' Fix sorting of shells & users Mar 1, 2026
* 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)'
@aelmahmoudy aelmahmoudy force-pushed the e12b3_shells_and_users branch from f70987c to 2cd10e2 Compare March 1, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant