This was supposed to print the "Smash" list without the characters in the "Notreal" list.
Smash = ['Mario', 'Link', 'Emira', 'Uru'] Notreal = ['Uru', 'Emira'] for char in Smash: for index in Notreal: if char == index: Smash.remove(index) else: print Smash
What it actually does though, is print the Smash list, as such:
['Mario', 'Link', 'Uru']
Why's it doing this?