...

/

Exercise 3: Flip the Keys and Values

Exercise 3: Flip the Keys and Values

Flip the keys and values of a dictionary.

Problem statement

There’s a method on hashes that flips keys and values. Find that method in the Ruby Hash documentation and try to flip the keys and values of this ...