News for hackers. Stuff that matters.
Re:Silly Python riddle by ngkabra on Wednesday December 21, 2011 @12:22AM (#3376466)
At 12 characters, this is definitely not the shortest, but it is a totally different approach than the other solutions:

    >>> f = lambda: g()if 0 else(1)
    >>> f()
    1
Re:Silly Python riddle by jerfelix on Wednesday December 21, 2011 @05:59AM (#3377104)
Creative solution! You can knock it down a character by removing the "1" and simply returning an empty tuple.

    >>> f = lambda: g()if 0 else()
    >>> f()
    ()