human
String formatting in Python
assistant
Here is some code to display `1 2 3` as a list of string

print('[{0}, {1}, {2}]'.format(1, 2, 3))

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