input: Write a function that takes in a list and returns a dictionary where each key is an element from the list and the corresponding value is the product of that element.
  
  def product_of_list(list):
      output = {}
      for element in list:
          output[element] = element * element
      return output
  
  assert product_of_list([7, 8, 5])=={7: 49, 8: 64, 5: 25}
  assert product_of_list([1, 2, 3])=={1: 1, 2: 4, 3: 9}
  assert product_of_list([0, 4, 6])=={0: 0, 4: 16, 6: 36}
output: def product_of_list(list):
      output = {}
      for element in list:
          output[element] = element * element
      return output