tip of the day generator

2007-11-28 Thread Joseph king
thanks for all the help... -- http://mail.python.org/mailman/listinfo/python-list

Re: Tip of the day generator.

2007-11-28 Thread Neil Cerutti
On 2007-11-28, Neil Cerutti <[EMAIL PROTECTED]> wrote: > import textwrap > import random > import os > > print "Sigswap v0.4" > [...] Yikes! That program was in dire need of Pythonification. It must have been written early in my Pythonology. -- Neil Cerutti -- http://mail.python.org/mailman/li

Re: Tip of the day generator.

2007-11-28 Thread Jason
On Nov 28, 9:00 am, "Joseph king" <[EMAIL PROTECTED]> wrote: > Hey i was wondering if any one would know if there was a way to have > python randomly read form a file or would you ahve to know the byte > postion and somehow randomize splicing the file so the sentence you > want show's up. > > i.e h

Re: Tip of the day generator.

2007-11-28 Thread Neil Cerutti
On 2007-11-28, Joseph king <[EMAIL PROTECTED]> wrote: > Hey i was wondering if any one would know if there was a way to > have python randomly read form a file or would you ahve to know > the byte postion and somehow randomize splicing the file so the > sentence you want show's up. > > i.e have a f

Re: Tip of the day generator.

2007-11-28 Thread Diez B. Roggisch
Joseph king wrote: > Hey i was wondering if any one would know if there was a way to have > python randomly read form a file or would you ahve to know the byte > postion and somehow randomize splicing the file so the sentence you > want show's up. > > i.e have a file with a lot of tips and useles

Tip of the day generator.

2007-11-28 Thread Joseph king
Hey i was wondering if any one would know if there was a way to have python randomly read form a file or would you ahve to know the byte postion and somehow randomize splicing the file so the sentence you want show's up. i.e have a file with a lot of tips and useless facts and then have python ran