Answers for "python function with input list"

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

Python Answers by Framework

Browse Popular Code Answers by Language