Answers for "python input list into function"

-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 "python input list into function"

Python Answers by Framework

Browse Popular Code Answers by Language