How to print a string one char at a time, with no spaces?

Richard Bow donkan7 at yahoo.com
Fri Oct 18 15:03:02 CEST 2002


Eric Brunel <eric.brunel at pragmadev.com> wrote in news:aop067$6ud$1 at news-
reader11.wanadoo.fr:

> Use:
> 
> import sys
> ...
> sys.stdout.write(pi[k])
> 
> and
> 
> sys.stdout.write('\n')
> 
> at the end. It should do what you want.
> 

Yes! Thanks very much.

Richard Bow



More information about the Python-list mailing list