Input in list form

how many methods are there to take input in list form?what are they with example

2 Likes

I hope this clears your query. :slight_smile:

4 Likes

then what is about eval() ?

1 Like

Right, Yes, Eval can also be used.

x=list(eval(input(“enter the series of numbers:”)))
this would be the method with seperators between numbers on input being comas.

1 Like