Hi everyone
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
Voters
Why are you repeating the
for
looplength of the string
times?Also, why
s.replace
? https://stackoverflow.com/questions/14198497/remove-char-at-specific-index-pythonAlso, what it
total
doing?Thats all I could find quickly.
@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.
@a5rock Thank you so much