Answers for "how to input a list"

0

how to take list input in python

for i in range(0, n): 
    ele = int(input()) 
  
    lst.append(ele)
Posted by: Guest on October-01-2020
0

list input python

a = list(map(eval,input("please input numbers:").split(",")))
Posted by: Guest on October-22-2021
-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

Python Answers by Framework

Browse Popular Code Answers by Language