Answers for "create list from user input python"

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
0

can i register a list in python for input

variable 1, variable 2 = input("Enter what has to be conveyed to the user here"). split() # for space-separated inputs
Posted by: Guest on August-10-2020

Code answers related to "create list from user input python"

Python Answers by Framework

Browse Popular Code Answers by Language