def strip_characters(string): for char in bad_chars: string = string.replace(char,"") return string stripped_test_data =  for d in test_data: date = strip_characters(d) stripped_test_data.append(date)
What I expected to happen:
What actually happened:
stripped_test_data isn’t defined in your code, but we expected it to be list type
I have already refreshed, closed the page, started all over again and I get the same error. I am now even using the given answer and get the same error.
If anybody could help me, I’d appreciate it.