Posts by user172849 • 86 points
1 post
-
7
votes3
answers131
viewsA: Break string every 4 positions - Python
I think a simple tie for is simple and effective enough, no? codigo = '77775698897897236' for i in range(0, len(codigo), 4): print(str[i:i+4]) If you need the answer on a list, just make the append.…