Question Detail
Question
What is the result of the following Python expression?
'apple' + 'pie' + ' ' + 'crust'
Correct Answer
Option B is the correct answer.
Detailed Explanation
The
+ operator concatenates strings directly. 'apple' + 'pie' becomes 'applepie'. Then, 'applepie' + ' ' becomes 'applepie '. Finally, 'applepie ' + 'crust' becomes 'applepie crust'.
Hint
Remember that the
+ operator joins strings without adding any extra characters unless you explicitly include them.