title: Finding largest and smallest number where user inputs numbers using a loop
body: <p>I am creating a program where I am asking the user to input numbers using a loop (not function).<br>
  I need to assume the numbers are floating.
  User will continue to input numbers until they hit the enter key a second time.
  Then the program will generate the largest number, smallest number, sum of the list and average number.</p>
  
  <p>I've figured everything out but when I type in a number 10 or larger, the program doesn't identity it as the largest.  In fact, I noticed that 10 is considered the smallest number.  </p>
  
  <p>Also I'm not able to convert the numbers in floating numbers.  </p>
  
  <pre><code>myList = []
  
  done = False
  while not done:
  
      enterNumber = raw_input("Enter a number (press Enter key a second time to stop): ")
      nNumbers = len(myList)
  
      if enterNumber == "":
          done = True
          break
      else:
          myList.append(enterNumber)
  
  print "You've typed in the following numbers: " + str(myList)
  
  smallest = 0 
  largest = 0
  
  for nextNumber in myList:                          
      if smallest == 0 or nextNumber &lt; smallest:
          smallest = nextNumber
  
  for nextNumber in myList:        
      if largest == 0 or largest &lt; nextNumber:
          largest = nextNumber
  
  print "Largest number from this list is: " + largest
  print "Smallest number from this list is: " + smallest
  
  sum = 0
  for nextValue in myList:
      sum = sum + float(nextValue)
  print "The sum of all the numbers from this list is: " + str(sum)
  
  average = float(sum/nNumbers)
  print "The average of all the numbers from this list is: " + str(average)
  </code></pre>