By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,173 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,173 IT Pros & Developers. It's quick & easy.

print problem

P: n/a
I want to print something without a '\n' automatically added at the end,
I know

print 1,
print 2,
print 3,

can partially solve the problem. But it added an space behind each
variable. So the statements above will print out:

1 2 3
instead of
123

Any way that I can just use it as printf in C?
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
nick <nb***@removethis.hotmail.com> wrote in
news:c9**********@news3.bu.edu:
I want to print something without a '\n' automatically added at the end,


sys.stdout.write('whatever')
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.