Closed fxkr closed 8 years ago
(An interesting variant of the question might be: ??? < ??? == True
, but you have to substitute the same code at both places. Good solutions would be "object()" and something based on property(import("itertools")__.count)).
Oh, sorry. @inglesp was faster.
Duplicate of #2
https://github.com/cosmologicon/pywat/blob/master/quiz.md
Sure, it's a corner case, but it's a valid answer. It's legal by the letter of the rules, it's still just one expression, and it demonstrates that Python has operator overloading and so operators may not always do what you think they do.