How to print concatenated string in Python?



When used with strings, plus (+) is defined as concatenation operator. It appends second string to the first string.

>>> s1 = 'TutorialsPoint '
>>> s2 = 'Hyderabad'
>>> print (s1+s2)
   TutorialsPoint Hyderabad

Advertisements