0

My assignment is:

Write a function reverse_dic(d) that takes a dictionary d as the input argument and returns a dictionary r. If the dictionary d has a key k and an associated value v, then the dictionary r should have a key v and a value k.

I understand what a dictionary is, it's something like:

dictionary = {'dog': 'woof', 'city': 'New York'}

But I don't understand what the question is asking for.

tablue
  • 81
  • 5

0 Answers0