fb pixel

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.
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]
To check your solution you need to sign in
Sign in to continue