adplus-dvertising
frame-decoration

Question

To concatenate two strings to a third what statements are applicable ?

a.

s3 = s1 . s2

b.

s3 = s1.add(s2)

c.

s3 = s1.__add__(s2)

d.

s3 = s1 * s2

Posted under Python

Answer: (c).s3 = s1.__add__(s2)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To concatenate two strings to a third what statements are applicable ?