Program for below in python?

I want to enter input like below
First size of N
Next line consists of N spaced integers
Ex:5
11 12 13 14 15
Please give program in python

N = int(input())
N_list = list(map(int, input().split()))

1 Like

But I have to enter only N numbers
If N=5
I have enter only 5 numbers
N=5
K= any random 5 numbers separated by space

@vamshi144
The code given by @anon55387769 is completely fine.

N = int(input())
N_list = list(map(int, input().split()))
2 Likes

@anon55387769 @aviral311 thank you bro. I am from electrical engineering guide me to ace competitive coding. Please