Answers for "how to input a list of value in pythonn"

-1

how to take input for list in python

a = []
s = int(input("Enter the size of array: "))
for i in range(0, s):
    ele = int(input("Enter the elements of the array: "))
    a.append(ele)
print(a)
Posted by: Guest on April-08-2021

Code answers related to "how to input a list of value in pythonn"

Python Answers by Framework

Browse Popular Code Answers by Language