Posts by user6931 • 31 points
1 post
-
3
votes3
answers5124
viewsA: Treat python numbers by adding dot
Recursive function: def milhar(s, sep): # s = string, sep pode ser '.' ou ',' return s if len(s) <= 3 else milhar(s[:-3], sep) + sep + s[-3:]