I have the code:
money = 3467898542
print(money)
I want the value to be output with dots, example: 3.467.898.542
How do I do this?
I searched the internet, but I didn’t find anything. Please help me or give me a link to the answer if there is one
>Solution :
Try:
money = 3467898542
print(f"{money:_}".replace("_", "."))
Prints:
3.467.898.542