title: Write a function that takes a list of words and returns the longest word and length of the longest one
body: <p>The full question is "Write a function find_longest_word() that takes a list of words and 
  returns the longest word and length of the longest one. You should also write a test function 
  that will request the users for a list of words and print the longest word and its length."</p>
  
  <p>I wrote this code and it works. I just need to figure out how i can add a function into this code to to what I am told in the question.</p>
  
  <pre><code>def main():
      text = input("Please input a list of words to evaluate: ")
  
      longest = 0
  
      for words in text.split():
          if len(words) &gt; longest:
              longest = len(words)
              longest_word = words
  
      print("The longest word is", longest_word, "with length", len(longest_word))
  
  main() 
  </code></pre>