On Wed, Mar 23, 2011 at 10:15 AM, brijithp at gmail.com <brijithp at gmail.com> wrote: > Hi, > > I too answered this way to this question. I thought there may be some other > efficient way to handle this situation. [...] Is this a question for students? Otherwise, what is the rationale of doing this in Python? Regards, Gora