79348296

Date: 2025-01-11 14:45:18
Score: 0.5
Natty:
Report link

I know this is an old question, but since python 3.6 which supports f-strings you can achive the desired result as follows:

a = 1000
print(f'{a:_}')

It also works without using a variable:

print(f'{1000:_}')

In both cases the output is 1_000. Not very elegant, but it works.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: N. Maks