Skip to content

Commit 77c4444

Browse files
committed
finish one 5 kyu
1 parent 2269904 commit 77c4444

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

[6 kyu]Grouped by commas.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import re
2+
def group_by_commas(n):
3+
return '{:,}'.format(n)
4+
5+
print(group_by_commas(19234))
6+
print(group_by_commas(19255366477))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy