My code required a (possible nested) list as variable. However, using sys.argv
to input a command line argument reads the input as a string.
So given the example input [[1,[2],3,4],5]
, what easy ways are there to convert this input from str
to a list
?
Thanks on forehand.