title: How to append a list with raw_input in Python and print min and max values
body: <p>I am trying to build a list with raw inputs. </p>
  
  <pre><code>while True:
      inp = raw_input("Enter a number: ")
  
      #edge cases
      if inp == "done" : break
      if len(inp) &lt; 1 : break
  
      #building list 
      try:
          num_list = []
          num = int(inp)
          num_list.append(num)
      except:
          print "Please enter a number."
          continue
  
      #max and min functions
      high = max(num_list)
      low = min(num_list)
  
  #print results 
  print "The highest number: ", high
  print "The lowest number: ", low
  
  print "Done!"
  </code></pre>
  
  <p>At the moment it seems to only save one of the inputs at a time and therefore the the last raw input is printed as both the max and min. </p>
  
  <p>Any ideas? I am new to Python and could use some direction. So far I have been unable to find the answer in StackOverflow or in the Python documentation. 
  Thanks in advance!</p>