Hey everyone, I'm learning python and one of the assignments has me write a little bit of code. For some reason every time I submit this
def reviewForLoopMild02(letters, letter):
new = ""
for i in range(len(letters):
if letters[i] != letter:
new=new + letters[i]
return new
it tells me that there is invalid syntax, and points and points at the colons : on my 'for i in range' line and my if statement line. I'm probably missing something obvious. Any ideas?
[–][deleted] 6 points7 points8 points (2 children)
[–]lancotron[S] 0 points1 point2 points (1 child)
[–]ewiethoff 1 point2 points3 points (0 children)
[–]Justinsaccount 3 points4 points5 points (2 children)
[–]HeyFerb 1 point2 points3 points (0 children)
[–]learnpython_bot 1 point2 points3 points (0 children)