0 votes
1 view
in Python by (44.1k points)
Can anyone tell me how to concatenate two strings in Python?

1 Answer

0 votes
by (94.9k points)

For concatenating or joining any two strings in Python, you need to use the + operator. Refer to the below code for implementation:

var1 = "Hello "

var2 = "World"

# + Operator is used to combine the strings 

var3 = var1 + var2 

print(var3) 

The output:

Hello World

If you are looking for an online course to learn Python, I recommend this Python Course by Intellipaat.

Related questions

0 votes
1 answer
asked Apr 28 in SQL by Sudhir_1997 (46.7k points)
+2 votes
3 answers
0 votes
1 answer
0 votes
1 answer
asked Jul 13 in Python by ashely (44.1k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...