A trivial question about print
Ante Bagaric
abf at fly.srk.fer.hr
Thu Apr 11 06:33:56 EDT 2002
Is there a way to prevent the print statement to automatically add a space
between two objects?
>>>print "a=",a
a= 1
how to make that cursed blank character dissappear?
Other than print "a=%d" % a because it wouldnt work for iteration of prints..
for i in range(5):
print i,
gives 0, 1, 2, 3, 4 and I want 0,1,2,3,4
Yes, I know it's possible to circumvent this behaviour, but I'm curiuous
whether it can be done within the print statement alone.
More information about the Python-list
mailing list