Tell me, please, how can I enter the required number of values in the list through a space? For example, in C ++ it is done like this:
for(int i = 0; i < N; i++) cin >> array[i]; And in Python, I came only to this:
array = list(map(int, input().split()))
But in this case there are no restrictions.