fork download
  1. input = '[23 45 6]'
  2. asString = ', '.join(input.split())
  3. print(asString)
  4. asList = eval(asString)
  5. print(asList)
Success #stdin #stdout 0.02s 9152KB
stdin
Standard input is empty
stdout
[23, 45, 6]
[23, 45, 6]