What's wrong with "lambda x : print x/60,x%60"
Klaus Alexander Seistrup
klaus at seistrup.dk
Mon Dec 5 02:20:18 EST 2005
Justin Ezequiel wrote:
> Try
>
> lambda_hrs = lambda x: (x/60,x%60)
Or
#v+
lambda_hrs = lambda x: divmod(x, 60)
#v-
Cheers,
--
Klaus Alexander Seistrup
PNX · http://pnx.dk/
More information about the Python-list
mailing list