title: Converting Float to Dollars and Cents
body: <p>First of all, I have tried this post (among others): <a href="https://stackoverflow.com/questions/320929/currency-formatting-in-python">Currency formatting in Python</a>.  It has no affect on my variable.  My best guess is that it is because I am using Python 3 and that was code for Python 2.  (Unless I overlooked something, because I am new to Python).</p>
  
  <p><strong>I want to convert a float, such as 1234.5, to a String, such as "$1,234.50".  How would I go about doing this?</strong></p>
  
  <p>And just in case, here is my code which compiled, but did not affect my variable:</p>
  
  <pre><code>money = float(1234.5)
  locale.setlocale(locale.LC_ALL, '')
  locale.currency(money, grouping=True)
  </code></pre>
  
  <p>Also unsuccessful:</p>
  
  <pre><code>money = float(1234.5)
  print(money) #output is 1234.5
  '${:,.2f}'.format(money)
  print(money) #output is 1234.5
  </code></pre>