title: How do I create a list from raw_input in Python 2.7.2?
body: <p>I have to write a program that accepts a sequence of average daily temperatures and put those temperatures into a list, but I can't figure out how.  What I tried below does not work.  Instead of giving me a list it just gives me the last input.</p>
  
  <pre><code>def main():
      #create a list to store the temperatures.
      tempList = []
      while True:
          dailyTemp = raw_input(
              "Enter average daily temperature or -100 to quit: ")
  
          # assign dailyTemo to tempList list
          tempList = [dailyTemp]
  
          print tempList
  
          if dailyTemp == '-100':
             break
  
  main()
  </code></pre>