input: Write a function to edit a Python program from using a list to using a dictionary. The function should take a list of integers as input, map each integer to its corresponding string representation, and return the new dictionary. The function should also print the string values from the dictionary. If the input list is empty, the function should return an empty dictionary and print nothing.
  assert edit_to_dict([1, 2, 3, 4])=={1: 'one', 2: 'two', 3: 'three', 4: 'four'}
  assert edit_to_dict([5, 6, 7, 8])=={5: 'five', 6: 'six', 7: 'seven', 8: 'eight'}
  assert edit_to_dict([9, 10])=={9: 'nine', 10: 'ten'}
  assert edit_to_dict([])=={}
output: def edit_to_dict(lst):
      num_to_str = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten'}
      result = {num: num_to_str[num] for num in lst if num in num_to_str}
      for value in result.values():
          print(value)
      return result