Inputting list

How to input a list?
You are asked to write a program that would take n numbers in the input and print them as a list.
The first line of the input is a single number n. The next n lines contain elements of the list (integers).
The program should append those numbers to a list and print the list in the output.
7 1 3 0 8 -4 2 0
[1, 3, 0, 8, -4, 2, 0]


Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue