title: How do you format for thousands separator in Python?
body: <p>I am simply trying to execute the following command in Python: </p>
  
  <pre><code>print("Number is", format(49000.12345,"10.2f"))
  </code></pre>
  
  <p>So I would like it to print out like 49,000.12 for the number.</p>
  
  <p>My teacher taught us to put a comma in <code>"10.2f"</code> like <code>",10.2f"</code> for the thousands separator but it's not working. Could someone please tell me the correct simple way similar to that?</p>
  
  <p>Thank you</p>