On Mon, Oct 13, 2008 at 2:29 PM, aditya shukla <[EMAIL PROTECTED]> wrote: > Hello folks, > > i have a list say list1=[a,b,c,...z] ie 26 elements i have to take 5 > elements from it randomly and save in another list.Please explain how to do > this? > > > Aditya > > -- > http://mail.python.org/mailman/listinfo/python-list > >
I would start here http://docs.python.org/library/random.html you are likely interested in choice or sample. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list