title: Limit the length of a Python list
body: <p>How would I set a list that only holds up to ten elements?</p>
  
  <p>I'm obtaining input names for a list using the following statement:</p>
  
  <pre><code>ar = map(int, raw_input().split())
  </code></pre>
  
  <p>and would like to limit the number of inputs a user can give</p>