Answers for "how to input in python list"

1

how to take user input in a list in python

list1 = []
length = int(input("input the length of your list"))
print("Input values of the list")
for i in range(length):
    values = int(input())
    list1.append(values)
print(list1)
Posted by: Guest on October-30-2021
-1

list input python

a = list(map(eval,input("please input numbers:").split(",")))
Posted by: Guest on October-22-2021

Code answers related to "how to input in python list"

Python Answers by Framework

Browse Popular Code Answers by Language