input: Write a function to remove all whitespaces from each string in a given list of strings and return a new list with the modified strings.
  def remove_whitespace(word_list):
      return [word.replace(" ", "") for word in word_list]
  
  assert remove_whitespace(['Hello  World  ', 'Hi  there', 'Good  Morning'])==['HelloWorld', 'Hithere', 'GoodMorning']
  assert remove_whitespace(['Python  is  fun', 'Code  practice'])==['Pythonisfun', 'Codepractice']
  assert remove_whitespace(['  Cleaning   ', '   up    space  '])==['Cleaning', 'upspace']
  assert remove_whitespace([])==[]
  assert remove_whitespace(['NoSpaces'])==['NoSpaces']
output: def remove_whitespace(word_list):
      return [word.replace(" ", "") for word in word_list]