input: Write a function to modify the given Python program to use a dictionary instead of a list. The function should take a list of integers as input, convert it into a dictionary where the keys are the integers and the values are their corresponding strings in words, and then print the values. If the input list is empty, the function should simply return a message indicating that the list is empty.
  assert edit_to_dict([1, 2, 3, 4])==['one', 'two', 'three', 'four']
  assert edit_to_dict([4, 3, 2, 1])==['four', 'three', 'two', 'one']
  assert edit_to_dict([5, 6, 7, 8])==['five', 'six', 'seven', 'eight']
  assert edit_to_dict([])=='The list is empty'
output: def edit_to_dict(lst):
      if not lst:
          return 'The list is empty'
      num_to_word = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six', 7: 'seven', 8: 'eight'}
      return [num_to_word[num] for num in lst]