How do loose the /012

Magnus L. Hetland mlh at idt.ntnu.no
Wed Oct 6 09:52:50 EDT 1999


"Steve Hunter" <Steve at HOSYS.com> writes:

> This code is suppose to take an ascii file made up of sentences and create a
> file in the form of..by example..
> 1 sentence one.
> 2 sentence two
> etc...
> 
> the code is  below and the input/output below that.....appreciate the fix
> that makes
> this work.

Try to use string.replace (or translate) to change line breaks into
spaces (or empty strings).

--

  Magnus
  Lie                                     Please forward all spam to
  Hetland                                                uce at ftc.gov




More information about the Python-list mailing list