1 == True
So, for some reason, Python equates True and 1. So this code rewrites 1 from "apples" to False. This made testing the code incredibly confusing. Clearly whoever wrote the code didn't experiment with it or they would have realized they put up some incredibly confusing and misleading code. I hope this at least helps somebody.