[EMAIL PROTECTED] wrote: > So how would I go about have 5 strings, and running a program that will > randomly pick one of those to print?
>>> import random >>> text = "Perhaps reading the manual is a good idea?".split() >>> random.choice(text) 'is' >>> random.choice(text) 'reading' >>> random.choice(text) 'a' >>> random.choice(text) 'the' >>> random.choice(text) 'Perhaps' See http://docs.python.org/lib/module-random.html -- http://mail.python.org/mailman/listinfo/python-list