title: How to round each item in a list of floats to 2 decimal places?
body: <p>I have a list which consists of float values but they're too detailed to proceed. I know we can shorten them by using the <code>("%.f" % variable)</code> operator, like:</p>
  
  <pre><code>result = [359.70000000000005]
  result = "%.2f" % result
  result = [359.70]
  </code></pre>
  
  <p>My question is how can I turn a list of values into their rounded equivalents without using an iterator. I've tried something, but it throws a <code>TypeError</code>:</p>
  
  <pre><code>list = [0.30000000000000004, 0.5, 0.20000000000000001]
  list = "%.2f" % list
  TypeError: not all arguments converted during string formatting
  </code></pre>
  
  <p>How can I provide a clean list like:</p>
  
  <pre><code>list = [0.30, 0.5, 0.20]
  </code></pre>