Skip to content
Advertisement

Tag: number-formatting

Python comma and divide an integer

Example output is: 8993 / 18782 I see some questions like that, but all of them was about “float”. I want to make these integers like that: 8,9K / 18,7K What is the “proper” way to do that? Answer Try this function: And replace your final line of code with the function: Also, if you don’t want to add a

Advertisement