title: Format str to float and increase from 1 decimal to 2 decimal in python
body: <p>I have a list of prices in 1 decimal place and in string format.</p>
  <p>I would like to convert each item into a float, change them to two decimal places and append them to a new list.</p>
  <p><code>price = [&quot;9.8&quot;, &quot;8.8&quot; ,&quot;10.9&quot;, &quot;11.8&quot;, &quot;13.9&quot;, &quot;18.9&quot;]</code></p>
  <p><code>newprice = []</code></p>
  <p>I tried this code but it does not work</p>
  <pre><code>for i in range(len(price)):
        price2= float(price[i])
        price= '{0:.3g}'.format(price2)
        newprice.append(price)
  </code></pre>
  <p>Most instructions online teach me how to reduce to 2 decimal places, not increase to two decimal places.</p>