<human>:  Control a print format when printing a list in Python
<bot>:' % ', '.join('%.3f' % val for val in list))

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