title: Python While Loop: sum of all numbers but the greatest
body: <p>Hi so my problem is that i must create a function that asks the user to enter a series of
  numbers greater than or equal to zero, one at a time. The user types end to indicate that
  there are no more numbers. The function computes the sum of all the values entered
  except for the maximum value in the series. (Think of this as dropping the highest
  homework score from a series of homework scores.) The function then both prints the
  sum and returns the sum. You may assume the user inputs are valid: they will either be a
  number greater than or equal to zero, or the string end. Here are some examples of how
  the function should behave:</p>
  
  <pre><code>&gt;&gt;&gt; allButMax()
  Enter next number: 20
  Enter next number: 30
  Enter next number: 40
  Enter next number: end
  The sum of all values except for the maximum value is: 50.0
  50.0
  &gt;&gt;&gt; allButMax()
  Enter next number: 1.55
  Enter next number: 90
  Enter next number: 8.45
  Enter next number: 2
  Enter next number: end
  The sum of all values except for the maximum value is: 12.0
  12.0
  &gt;&gt;&gt; x = allButMax()
  Enter next number: 3
  Enter next number: 2
  Enter next number: 1
  Enter next number: end
  The sum of all values except for the maximum value is: 3.0
  &gt;&gt;&gt; print(x)
  3.0
  &gt;&gt;&gt; allButMax()
  Enter next number: end
  The sum of all values except for the maximum value is: 0
  0
  </code></pre>
  
  <p>can anyone help me with this?? so far i have this (also this has to be a while loop)</p>
  
  <pre><code>def allButMax():
      while True:
          number=float(input("Enter next number: "))
          if number="end":
              break
      "end"=0
  </code></pre>
  
  <p>what i dont know is that i dont know how to add every value other than the max value. how would the function know which value is the maximum value? Also would i have to use another while loop to add all numbers?</p>