Writing to file
Aahz Maruch
aahz at panix.com
Fri Oct 13 13:19:53 EDT 2000
In article <mailman.971449052.19483.python-list at python.org>,
Neil Schemenauer <nas at arctrix.com> wrote:
>On Fri, Oct 13, 2000 at 05:36:27PM +0300, j wrote:
>>
>> How can i print
>> i am a "monkey"
>
> print 'i am a "monkey"'
>
>or if you don't want the newline:
>
> import sys
> sys.stdout.write('i am a "monkey"')
or
print 'i am a "monkey"',
(note the trailing comma)
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"Isn't it interesting that the same people who laugh at science fiction
listen to weather forecasts and economists?" -- Kelvin Throop III
More information about the Python-list
mailing list