human
Control a print format when printing a list in Python
assistant
Here is some code to format print output of list of floats `l` to print only up to 3 decimal points

print('[' + ', '.join('%5.3f' % v for v in l) + ']')

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