How to print concatenated string in Python?

PythonServer Side ProgrammingProgramming

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
raja
Published on 29-Dec-2017 05:52:29
Advertisements