14. How will you concatenate multiple strings together in Python?¶
We can use following ways to concatenate multiple string together in Python:
I. use + operator:¶
E.g. >>> fname="John" >>> lname="Ray" >>> print fname+lname JohnRay
II. use join function:¶
E.g. >>> ''.join(['John','Ray']) 'JohnRay'