Your loop will continue as long as any one of the four conditions in the while statement are true. If answer == 'y', then the first condition is false, but the remaining three conditions are all true and your loop continues. Likewise for any of the other conditions.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.