Skip to content

commit-live-students/027-join-lists-into-dict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Write a function to map two lists into a dictionary

Define a function that takes two lists as parameter and returns a dictionary after combining the lists.

Example:

Input:

[1, 2, 3], [10, 20, 30]

Output:

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

Challenge:

Write the function using only one for-loop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages