Hello, On 14 Dec 2005 12:16:22 -0800, [EMAIL PROTECTED] wrote:
> I want to do something like this: > > from random import choice > x = set(("jenny", "jacqui", "claire", "chris", "tracy")) > somebody = random.choice(x) > > but I bet a "TypeError: unindexable object" error. Any suggestions for > an elegant workaround? What about somebody = random.choice(list(x)) ? Christophe. -- http://mail.python.org/mailman/listinfo/python-list