title: Need to simplify and clean up this code
body: <p>I am a Python beginner and need to clean up and simplify this code but I have no clue how to, so any feedback would be apreciated!</p>
  
  <pre><code>print ("Type in four inputs.")
  word_first = raw_input("What is your first input? ")
  word_second = raw_input("What is your second input? ")
  word_third = raw_input("What is your third input? ")
  word_fourth = raw_input("What is your fourth input? ")
  
  list_of_words = [word_first, word_second, word_third, word_fourth]
  print
  print sorted(list_of_words, key=len)
  
  def average(numbers):
      return sum(numbers)/len(numbers)
  
  all_words = word_first, word_second, word_third, word_fourth 
  words_total = word_first, word_second, word_third, word_fourth.split()
  length_words = [len(word) for word in words_total]
  
  word_first_length = len(word_first)
  word_second_length = len(word_second)
  word_third_length = len(word_third)
  word_fourth_length = len(word_fourth)
  total_letters = word_first_length + word_second_length + word_third_length + word_fourth_length
  average_length = total_letters / 4
  print
  print ("Shortest input is: ") + (min((word for word in list_of_words if word), key=len))
  print ("Average length is %.1f.") %(average_length)
  </code></pre>