Generator of lists in python how to write?

With keypad to enter a natural number n
The next line entered n elements of the array.

As inside of generator list to put a limit on the number typed on the keypad numbers?
April 3rd 20 at 17:14
2 answers
April 3rd 20 at 17:16
Open documentation.
April 3rd 20 at 17:18
Generation of a list:
a = [for i in input().split()]
How to limit don't know, but it is possible for example to complete the introduction of a certain value.
How to limit don't know

@gabriel, in my answer above is the answer to this question:
For example, using the function range()
- therese39 commented on April 3rd 20 at 17:21

Find more questions by tags Python