title: Shortest code for input
body: <p>I'm trying to make a shortest code for input with condition as much as possible.<br>
  <strong>Condition:</strong> the number should be greater than 0.<br>
  <strong>Input:</strong> first number determines number of next inputs.<br>
  For example:<br></p>
  
  <pre><code>4
  1
  -2
  3
  -4
  </code></pre>
  
  <p>So i want to append to list() only 1 and 3.<br><br>
  Here is my code:</p>
  
  <pre><code>n=int(input())
  t=[]
  for i in range(n):
      x = int(input())
      if(x&gt;0):
          t.append(x)
  print(t)
  </code></pre>
  
  <p>I'm wondering if it can be shorter<br>
  I had idea, but it was not working as i expected - "syntax error":</p>
  
  <pre><code>n=int(input())
  t=[x=int(input()) for x in range(n) if(x)&gt;0)]
  print(t)
  </code></pre>
  
  <p><strong>EDIT:</strong> forgot. I'm using python3.1...</p>