for i in results:
for j in results:
gives me an error that i’m modifying the input list, which i’m not, so i’m confused why it thinks that
Oh, but you are.
l point to the same list.
It is never a good idea to modify the list one is iterating. Perhaps consider creating an empty list, and append letters to it that are not already in it. Then return that list as a string.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.