John Salerno <[EMAIL PROTECTED]> writes: > Is there a better way to extract a certain number of items from a list > (so maybe I don't need the for loop)? Is a list even the right type to > use, since it gets edited in place? Perhaps a set?
See the doc for random.sample. -- http://mail.python.org/mailman/listinfo/python-list