input: Write a function to edit a given Python program to use a dictionary instead of a list. The input is a list of integers, and the output should be a dictionary where each integer in the list is a key, and its corresponding value is a string representing the integer in words. The function should also modify the loop to iterate over the dictionary items and print the values. 
  
  assert edit_program([1, 2, 3, 4])=={'one', 'two', 'three', 'four'}
  assert edit_program([5, 6, 7])=={'five', 'six', 'seven'}
  assert edit_program([])=={}
output: def edit_program(lst):
      num_to_words = {
          1: 'one', 2: 'two', 3: 'three', 4: 'four',
          5: 'five', 6: 'six', 7: 'seven', 8: 'eight',
          9: 'nine', 10: 'ten'
      }
      result = {num: num_to_words.get(num) for num in lst}
      for value in result.values():
          print(value)
      return result