input: Write a function to convert a given list of integers into a dictionary where each integer is a key and its corresponding value is a string representing the number in English words. If the list is empty, return an empty dictionary. The function should then print the values of the dictionary.
  assert list_to_dict([1, 2, 3, 4])=={1: 'one', 2: 'two', 3: 'three', 4: 'four'}
  assert list_to_dict([])=={}
  assert list_to_dict([1, 5, 2, 7])=={1: 'one', 5: 'five', 2: 'two', 7: 'seven'}
  assert list_to_dict([10, 20, 30])=={10: 'ten', 20: 'twenty', 30: 'thirty'}
  assert list_to_dict([8, 9, 4, 3, 5])=={8: 'eight', 9: 'nine', 4: 'four', 3: 'three', 5: 'five'}
output: def list_to_dict(nums):
      num_to_words = {
          1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five',
          6: 'six', 7: 'seven', 8: 'eight', 9: 'nine', 10: 'ten',
          20: 'twenty', 30: 'thirty'
      }
      result = {num: num_to_words.get(num, 'unknown') for num in nums}
      for value in result.values():
          print(value)
      return result