Simple Problems: Caps and Commas
KefX
keflimarcusx at aol.comNOSPAM
Mon Oct 27 18:44:21 EST 2003
>This is what you are overlooking: the comma operator in the print
>argument list inserts spaces between arguments, therefore also between
>the variables and the literal commas (","). saddy, city and state don't
>end in a space, and there is no space in ",".
Eep, I can't believe I didn't notice that. It's amazing what your eyes can do
when you're not really paying attention.
In that case, I'd just use the + operator instead of the comma operator to join
the strings. Kind of lazy, but then, so am I ;)
- Kef
More information about the Python-list
mailing list