Likewise, for numbers: Python 2.1.3 (#1, Sep 7 2002, 15:29:56) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "copyright", "credits" or "license" for more information. >>> a = 123 >>> b = 456 >>> print str(a) + str(b) 123456