Avatar ·

How to split a number into digits

📁 Advanced Python Topics

There is a number 1234567.
How to split the number with spaces into digits so that it becomes 1 234 567?