Runtime String Concatenation : Concatenate « String « Python Tutorial






print 'Spanish' + 'Inquisition'
print 'Spanish' + ' ' + 'Inquisition'
s = 'Spanish' + ' ' + 'Inquisition' + ' Made Easy'
import string
print string.upper(s[:3] + s[20])








5.5.Concatenate
5.5.1.Concatenating Strings
5.5.2.String Formatting vs. Concatenating
5.5.3.Runtime String Concatenation