what's wrong with "lambda x : print x/60,x%60"
bonono at gmail.com
bonono at gmail.com
Mon Dec 5 21:53:22 EST 2005
rurpy at yahoo.com wrote:
> > and, as you just found out, a rather restrictive one
> > at that.
>
> In part because Python's designers failed to make "print" a function
> or provide an if-then-else expression.
>
Why would one need print in lambda ? I like ternary operator(and there
is ugly work around though still 100% functional). But print ?
More information about the Python-list
mailing list