title: Limit size of a list in python
body: <p>I want to limit the size of a list in python 2.7 I have been trying to do it with a while loop but it doesn't work</p>
  
  <pre><code>l=[]
  i=raw_input()//this is the size of the list
  count=0
  while count&lt;i:
      l.append(raw_input())
      count=count+1
  </code></pre>
  
  <p>The thing is that it does not finish the loop. I think this problem has an easy answer but I can't find it.
  Thanks in advance</p>