input = '[23 45 6]'asString = ', '.join(input.split())print(asString)asList = eval(asString)print(asList)
Standard input is empty
[23, 45, 6] [23, 45, 6]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!