Skip to content

sagard21/028-sort-dict-keys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write a function to sort a dictionary by its keys.

Define a function that takes a dictionary as a parameter and returns a sorted list of the keys of the dictionary.

Example:

Input:

{1: 10, 4: 40, 2: 20, 3: 30}

Output:

[1, 2, 3, 4]


Challenge:

Do not use for-loop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%