Answers for "how take input in python input should be list"

12

get list input from user in python

a = list(map(int,input("nEnter the numbers : ").strip().split()))
Posted by: Guest on September-17-2020
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

Code answers related to "how take input in python input should be list"

Python Answers by Framework

Browse Popular Code Answers by Language