Skip to content

Problem 4

Write a Python function to print the keys and values as seen below.

1
2
3
4
5
6
7
di = {'key1': 1, 'key2':2, 'key3': 3, 'key4':55}

Output:
key1 1
key2 2
key3 3
key4 4