(Using Python 3.1)
I know this question has been asked many times for the general question of testing if iterator is empty; obviously, there\'s no neat solution to t
you can go for reduce expression too return reduce(lambda a,b: a
return reduce(lambda a,b: a