input: Write a function to generate a program in Python that takes in two strings as input, and outputs a list of all the words in both strings. The function should return a list which is the concatenation of words from both input strings. If either of the input strings is empty, the function should return an empty list.
  assert string_to_list("I want to make a difference", "The journey to success is long")==['I', 'want', 'to', 'make', 'a', 'difference', 'The', 'journey', 'to', 'success', 'is', 'long']
  assert string_to_list("Hello World", "")==['Hello', 'World']
  assert string_to_list("", "Testing One Two Three")==['Testing', 'One', 'Two', 'Three']
  assert string_to_list("", "")==[]
  assert string_to_list("All the words", "Another set of words")==['All', 'the', 'words', 'Another', 'set', 'of', 'words']
output: def string_to_list(str1, str2):
      if not str1 and not str2:
          return []
      words1 = str1.split() if str1 else []
      words2 = str2.split() if str2 else []
      return words1 + words2