Question Detail

COS 102 Python strings Objective Question

Question

Which operator is used in Python to join two or more strings together to create a new one?
Options
A *
B /
C +
Correct Answer
D -
Correct Answer

Option C is the correct answer.

Detailed Explanation

Page 5, under 'Concatenation', states: 'In Python, we use the + operator.' This operator is specifically for joining strings.

Hint

Consider the mathematical operator that implies 'addition' or 'joining' in a general sense.

Question Info