Weird program behaviour in Python
<p>When running the following code, which is an easy problem, the Python interpreter works weirdly:</p>

<pre><code>n = input()
for i in range(n):
    testcase = raw_input()
    #print i
    print testcase[2:(int(testcase[0])+1)]+testcase[(int(testcase[0])+2):]
</code></pre>

<p>The problem consists in taking n strings and deleting a single character from them.
For example, given the string "4 PYTHON", the program should output "PYTON".
The code runs ok, but if I take out the comment mark, the statement print i makes the interpreter give an unexpected EOF while parsing. Any idea on why this happens?</p>

<p>EDIT: I'm working under Python 2.5, 32 bits in Windows.</p>
