Q: Print whithout \n
Will Ware
wware at world.std.com
Tue Dec 12 07:00:32 EST 2000
Henrik Mårtensson (henrik.martensson at frontconsulting.se) wrote:
> How do you print a string whithout a linefeed in the end.
Use a comma at the end, which which will give you a space
instead of a linefeed. For instance,
print "These two things",
print "will appear on the same line"
will print
These two things will appear on the same line
--
# - - - - - - - - - - - - - - - - - - - - - - - -
# Resistance is futile. Capacitance is efficacious.
# Will Ware email: wware @ world.std.com
More information about the Python-list
mailing list