while loop with two specific conditions [duplicate]

No matter what list1 is, it cannot be both “y” and “n”, so it is always not one of them. I think you mean “and” not “or.”

Browse More Popular Posts

Leave a Comment