← Back to Community
Hi everyone
Profile icon
FARHEENPALAGIRI

Hey guys. Me again. I need help. Serious help. Like, I've-been-working-for- almost-2-hours-and-have-no-idea-what-is-happening help. I'm just gonna post a link. I explain everything in fair detail in the link. Please help me. I'm so confused.

Here's the link: https://repl.it/@FARHEENPALAGIRI/Delete-every-third-character?language=python3

Answered by a5rocks [earned 5 cycles]
View Answer
Voters
Profile icon
BotsBoots
Profile icon
FARHEENPALAGIRI
Comments
hotnewtop
Profile icon
a5rocks

Why are you repeating the for loop length of the string times?

Also, why s.replace? https://stackoverflow.com/questions/14198497/remove-char-at-specific-index-python

Also, what it total doing?

Thats all I could find quickly.

Profile icon
AzureScripts

@a5rocks That's what i thought about "total", it's being assigned to ' ' and being used by nothing.

Also i believe he's using s.replace() to replace the third character with a space.

Profile icon
FARHEENPALAGIRI

@a5rock Thank you so much