[BangPypers] some doubts regarding python

Navin Kabra navin.kabra at gmail.com
Fri Oct 30 02:58:11 CET 2009

On Fri, Oct 30, 2009 at 6:46 AM, Shashwat Anand <anand.shashwat at gmail.com>wrote:

> @Navin : Thanks
> in case #2:
> "reduce(lcm2, mylist)" works fine

Depends upon what you want the behavior to be when mylist is empty. Sending
in a start of '1' will give you '1' as the lcm of an empty list. Sending in
nothing will result in an exception.


More information about the BangPypers mailing list