Whenever I am running code I keep getting error
" File “python”, line ****
IndentationError: unexpected indent "
even when confirmed from moderators that the code is correct. Is there some way to fix this?
I’ve tried deleting the white space then using tab, but to no avail
the code below is my most recent example of the error - line 8
appreciate your help
def count(sequence, item): tally = 0 index = -1 for tick in range(len(sequence)): index += 1 if sequence[index] == item: tally += 1 return tally