• + 0 comments

    Please kindly explain:

    why using : size = int(input())
    numbers = list(map(int, input().split()))

    The input first line is N number of elements in the array, and second line is N space-separated integers that describe the array's elements. My understanding is that, if we use int(input()), size will be N+1 as the first line N is an integer in input.

    \\

    Please