input: Write a python function to capitalize each word in a given string.
  assert capitalize("hello world") == "Hello World"
  assert capitalize("this is a test") == "This Is A Test"
  assert capitalize("python programming") == "Python Programming"
output: def capitalize(string):
      return ' '.join(word.capitalize() for word in string.split())