newbie question: getting rid of space in string :(

Gerhard Haering gerhard.haering at gmx.de
Fri Jul 12 12:17:46 EDT 2002


In article Joseph Youssef wrote:
> This is a multi-part message in MIME format.

Please configure your news-/mailreader to send text _only_.

> [...]
> print "<" +color+ "><b>" +a+ "</b></" +color+ ">",
> [...]
> now this works just fine exept that space in between each block of text, 

The reason for this is that a print command ending in a comma implicitely
adds a space character.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list