title: Reading user input in python 2.4, putting it into a queue
body: <p>So I'm writing a differential calculator program in python 2.4 (I know it's out of date, it's a school assignment and our sysadmin doesn't believe in updating anything) that accepts a user input in prefix notation (i.e. input = [+ - * x^2 2x 3x^2 x], equivalent to x^2 + 2x - 3x^2 * x) and calculates the differential. </p>
  
  <p>I'm trying to find a way to read the command line user input and put the mathematical operators into a queue, but I can't figure it out! apparently, the X=input() and x=raw_input() commands aren't working, and I can find literally 0 documentation on how to read user input in python 2.4. My question is: How do I read in user input in python 2.4, and how do I put that input into a queue? Here is what I am trying:</p>
  
  <pre><code>1 formula = input("Enter Formula:")
  2 
  3 operatorQueue=[]
  4 
  5 int i = len(formula)
  6 
  7 for x in formula:
  8     if formula[x] == '*', '+', '-', '/':
  9         operatorQueue.append(formula[x])
  0 
  11 print "operator A:", operatorQueue.pop(0)
  12 
  </code></pre>
  
  <p>Which is not working (I keep getting errors like "print: command not found" and "formula:command not found")</p>
  
  <p>Any help would be appreciated</p>