On Tue, Dec 17, 2013 at 4:16 AM, Ravi Prabakaran <ravi....@gmail.com> wrote: > Could anyone please guide me with best solution without loops ? >
Why "without loops"? The best solution, in my opinion, is a loop. Is this a specific challenge (homework)? I could make you a list comprehension, but that's really just another form of loop More information on the problem parameters, please? ChrisA -- https://mail.python.org/mailman/listinfo/python-list