On Sun, Aug 25, 2013 at 3:50 PM, <sahil301290 at gmail.com> wrote: > NOTE: NO INBUILT FUNCTION BE USED. Thank you in advance. You'll have to do your own homework, then. Python strongly favours the use of inbuilt functions. ChrisA