human
Converting a String to List in Python
assistant
Here is some code to convert the string '0,1,2' to a list of integers

[int(x) for x in '0,1,2'.split(',')]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.