[prog] Re: another question in python

Robert J. Hansen cortana at earthlink.net
Thu Dec 12 13:20:35 EST 2002


> Is it possible (in python) to cat two strings together to make them display 
> something on the same line without spaces, I know how to do it with 
> spaces....

[rjhansen at leviticus rjhansen]$ python
Python 2.2.1 (#1, Aug 30 2002, 12:15:30)
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> foo = 'Foo'
>>> bar = 'Bar'
>>> print foo + bar
FooBar





More information about the Programming mailing list