title: How can i read inputs till user decide to end
body: <p>How can i write in python a code which will be doing excatly the same thing as:</p>
  
  <pre><code>while(cin&gt;&gt;a){//some operations on "a"}
  </code></pre>
  
  <p>in c++? I try:</p>
  
  <pre><code>while(a=raw_input()):
  </code></pre>
  
  <p>but IDLE throws a syntax error on "=". I don't want to use </p>
  
  <pre><code>while True:
  </code></pre>