Concatenate characters in Python | Example code

Use + operator lets you concatenate characters in Python. This operator is referred to as the Python string concatenation operator

Example concatenate characters in Python

Simple example code using + operator between to characters.

res = 'a' + 'b' + 'c'



Concatenate characters in Python


ch1 = "a"
ch2 = "b"

res = ch1 + ch2


Output: ab

Do comment if you have any doubts and suggestions on this Python concatenate topic.

Note: IDE: PyCharm 2021.1.3 (Community Edition)

Windows 10

Python 3.7

All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.