Dictionary Practice

  1. Write a function that takes a dictionary and prints out each key-value pair on a separate line.
  2. Write a function that takes a list of floats and returns a dictionary mapping each number to its reciprocal. If zero is in the list, its reciprocal should be omitted.