Skip to content

Instantly share code, notes, and snippets.

@eriky
Created May 11, 2021 13:14
Show Gist options
  • Save eriky/4f439693f042b9d5a4527616eb24b575 to your computer and use it in GitHub Desktop.
Save eriky/4f439693f042b9d5a4527616eb24b575 to your computer and use it in GitHub Desktop.
>>> phone_numbers = { 'Jack': '070-02222748', 'Pete': '010-2488634', 'Eric': '06-10101010' }
>>> list(phone_numbers)
['Jack', 'Pete', 'Eric']
>>> sorted(phone_numbers)
['Eric', 'Jack', 'Pete']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment