https://wikimass.com/python/condense-a-number