Good day, everbody. Here is a simple program called test.py: #!/usr/bin/python print "No newline, please.", # End of program Here is what program does: prompt> ./test.py No newline, please. prompt> Here is what I want the program to do
Rick Holbert
holbertr at dma.org
Mon Oct 11 14:30:31 EDT 2004
import sys
sys.stdout.write('No newline, please.')
S. Staats wrote:
> Sorry about the 'double' post. The first one is missing an important
> piece.
>
> Here is a simple program called test.py:
> #!/usr/bin/python
> print "No newline, please.",
> # End of program
>
> Here is what program does:
> prompt> ./test.py
> No newline, please.
> prompt>
>
> Here is what I want the program to do:
> prompt> ./test.py
> No newline, please.prompt>
>
> How can I get the python interpreter to not print a newline when it exits?
>
> Thanks for your help!
More information about the Python-list
mailing list