An extraordinarily stupid question

Skip Montanaro skip at pobox.com
Fri Apr 19 23:26:14 EDT 2002


    Shane> ... I just want to print out a character without a newline and
    Shane> without a space behind it.

    Try this:

       import sys
       sys.stdout.write(c)
       sys.stdout.flush()

You can omit the flush if it's not critical that it display immediately.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)





More information about the Python-list mailing list