How to print without spaces?

Andreas Tawn andreas.tawn at ubisoft.com
Fri Sep 18 12:49:06 EDT 2009


> Hi,
> 
> I don't want to print the space between 'a' and 'b'. Could somebody
> let me know how to do it?
> 
> Regards,
> Peng
> 
> $ python
> Python 2.5.2 (r252:60911, May 21 2008, 10:08:24)
> [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> print "a","b"
> a b

print "a" + "b"

Cheers,

Drea



More information about the Python-list mailing list