Formatted Numbers

Yes, Sorry. But I was Just teaching you code formatting. Cause I couldn’t understand your code.

However, here is the reason of your code being rejected. For big numbers such as this,

2389346234712562489

the output becomes something like this,

2,389,489
346,489
234,489
712,489
562,489

Its seems like your code is printing the last part over and over cause you have put it inside the loop.
Just bring it outside of the loop just like this and your code should be accepted.

for i in range(c - 1):
    print(a[(b // c) * i + d:(b // c) * (i + 1) + d], end=",")
    print(a[-3:]) #bring this line out of the loop

and after fixing it, see this also,

1
12
123
1,234
12,345
123,456
1,234,567
12,3456,678 // what ?
123,456,789
1,234,567,890

And it seems your code is giving WA for inputs lenght 9. find out the reason and fox it also.

And again, you have not edited this post yet. please do so.