1.

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

Answer» The correct option is (c) s3 = s1.__add__(s2)

The best I can explain: __add__ is another method that can be used for concatenation.


Discussion

No Comment Found