title: Limiting user input in a list of integers in Python 3.x
body: <p>I am new to Python and in one of my exercises I need to write a program that will store 5 integers entered to the console in a list, then print its length, type of the list, and print the sorted list.</p>
  
  <p>So far, the most elegant way I could do it without limiting the input to 5 integers was:</p>
  
  <pre><code>a = [int(x) for x in input().split()]
  print(len(a), type(a), sorted(a))
  </code></pre>
  
  <p>However, I can't get my head around how to add the command to store only 5 numbers entered by the user in the list and ignore the rest.</p>
  
  <p>I thought of using int(input()) for x in range(5), but it didn't work, and I also don't know how to add the split then.</p>
  
  <p>I know there is a way to store items in the list using map(), but I haven't come across that in my course yet, so if there is a simpler and more efficient way to do it with list(map()), I would highly appreciate if someone could guide me.</p>
  
  <p>I only started learning, so any advice would be appreciated. Thanks!</p>