Control a print format when printing a list in Python,print([('%5.3f' % val) for val in l])