[Tutor] Why does print add spaces ?
Tony Cappellini
tony@tcapp.com
Sat Mar 15 16:40:03 2003
--=====================_8812681==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
In this example
mystr="abcdefghi"
for x in range(1,len(mystr)):
print "%s," % mystr[x],
a, b, c, d, e, f, g, h, i,
why does print add an implied space ??
How would i change this if I didn't want any spaces between each printed
character ?
--=====================_8812681==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
<br><br>
In this example<br><br>
<br>
<font face="Courier New, Courier">mystr="abcdefghi"<br><br>
for x in range(1,len(mystr)):<br>
print "%s," % mystr[x],<br><br>
<br>
a, b, c, d, e, f, g, h, i,<br><br>
why does print add an implied space ??<br>
How would i change this if I didn't want any spaces between each printed
character ?<br><br>
<br>
</font></html>
--=====================_8812681==_.ALT--