Skip to content

seekingpeace/020-key-val-tuples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Define a Function to iterate over a dictionary

Define a function that takes a dictionary as a parameter and iterates over its key:value pairs. The Function should return a sorted list containing tuples of the key-value pairs.

Example:

Input:

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

Output:

[(1, 10), (2, 20), (3, 30), (4, 40)]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%