My for loop won't run correctly (Using python).
I have it go through each item in the list, and if it's a string, it removes it. For some reason it only removes one item and then doesn't continue the loop at all after that. I even tried copy-pasting the same exact code into PyCharm, and it works perfectly fine there.
18,794 solved in python ... not an issue! for loops don't remove strings. post your code with a spoiler tag and someone may guide you to a solution
edit: upon hearing it works perfectly in PyCharm, I'm wondering if you're printing the result. on CW you need to
return
the result. is that it? ;)My for loop won't run correctly (Using python).
I have it go through each item in the list, and if it's a string, it removes it. For some reason it only removes one item and then doesn't continue the loop at all after that. I even tried copy-pasting the same exact code into PyCharm, and it works perfectly fine there.