reading from a text file

Simon Brunning simon at brunningonline.net
Mon Nov 30 08:06:56 EST 2009


2009/11/27 baboucarr sanneh <sanneh27 at hotmail.com>:
> hi all
>
> i would like to create a python program that would read from a text file and
> returns one result at random.

This might be of use:

http://code.activestate.com/recipes/426332/#c2

-- 
Cheers,
Simon B.



More information about the Python-list mailing list