Ask Questions and get answer about programming
How can we input list of numbers from user. As i want user to enter some number and he should be able to enter a list of numbers. As
numbers = [4,2,6,8,9,4,3,6,3] # Input should be like this
How can i do this in python
here you can use split property.
print("Input numbers seperated by ',':")
numbers = [int(x) for x in input().split(",")]