input: Write a python function to find the longest word in a sentence.
  assert longestWord("This is a test sentence") == "sentence"
  assert longestWord("Hello world") == "Hello"
  assert longestWord("Python programming is fun") == "programming"
output: def longestWord(sentence):
      words = sentence.split()
      longest = max(words, key=len)
      return longest