LearnPy Hub
← Dictionaries problems
Easy

Zip Into a Dictionary

Read a line of keys and a line of values (same count) and print the dictionary that pairs them up.

Input

Two lines.

Output

A dictionary.

Sample 1

Input
a b c
1 2 3
Output
{'a': '1', 'b': '2', 'c': '3'}

Sample 2

Input
x
y
Output
{'x': 'y'}
solution.py
Output appears here
Zip Into a Dictionary · Python practice problem · LearnPy Hub