title: Comparing lengths of words in strings
body: <p>Need to find the longest word in a string and print that word.
  1.) Ask user to enter sentence separated by spaces.
  2.)Find and print the longest word. If two or more words are the same length than print the first word.</p>
  
  <p>this is what I have so far</p>
  
  <pre><code>def maxword(splitlist):      #sorry, still trying to understand loops
      for word in splitlist:
          length = len(word)
          if ??????
  
  wordlist = input("Enter a sentence: ")
  splitlist = wordlist.split()
  
  maxword(splitlist)
  </code></pre>
  
  <p>I'm hitting a wall when trying to compare the lenghts of words in a sentance. I'm a student who's been using python for 5 weeks.</p>