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)