Python Programming - Variables - Discussion

Discussion Forum : Variables - General Questions (Q.No. 8)
8.
Which of the following is a valid way to concatenate two strings?
str1 . str2
str1 + str2
str1 * str2
str1 | str2
Answer: Option
Explanation:
In Python, the + operator is used to concatenate two strings. For example, "Hello, " + "IndiaBIX" would result in the string "Hello, IndiaBIX".
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.