If I need to do something in Python then I more than likely google for the answer. I can't remember all the foobar syntactic subtleties off the top of my head and neither can most people. So when you give some random quiz to trip the interviewee up to expose them as a fraud that is when I'd get up and leave. I'm not going to be interviewed to prove I can write code because I am probably more experience than you.