How might I be able to input [1,2,3] into python and store it as a list and not as a string (i.e.'[1,2,3]'). input() returns a string so does anybody have any ideas?
-
1One way might be stackoverflow.com/questions/4663306/…Devesh Kumar Singh– Devesh Kumar Singh2020-04-09 03:46:31 +00:00Commented Apr 9, 2020 at 3:46
-
@DeveshKumarSingh Thanks for the tip. However, the input is still a set of integers and not a list.Lorenzo Beronilla– Lorenzo Beronilla2020-04-09 03:47:39 +00:00Commented Apr 9, 2020 at 3:47
Add a comment
|