title: Reading input from Python and print out in while loop
body: <p>I wonder how I can translate the following C++ code to Python code.    </p>
  
  <pre><code>int n;
  while (cin &gt;&gt; n)
  cout &lt;&lt; n &lt;&lt;endl;
  </code></pre>
  
  <p>My guess is it would be something like this</p>
  
  <pre><code>import sys
  
  while n = raw_input():
     print n + "\n"
  </code></pre>
  
  <p>but it doesn't work... Please help me. Thank you.</p>