title: Formatting long numbers as strings
body: <p>What is an easy way in Python to format integers into strings representing thousands with K, and millions with M, and leaving just couple digits after comma?</p>
  
  <p>I'd like to show 7436313 as 7.44M, and 2345 as 2,34K.</p>
  
  <p>Is there some % string formatting operator available for that? Or that could be done only by actually dividing by 1000 in a loop and constructing result string step by step?</p>