title: How to use .format() specifiers such as ,.2f while trying to format variables in?
body: <p>How do I format a number to have a thousands separator and round to two decimals while trying to format a variable in?
  For example</p>
  <pre><code>print('{} earns {} a year&quot;.format(name, earnings ':,.2f')
  </code></pre>
  <p>doesn't seem to work. How do I add in both variables but format my number value?</p>