Question Detail
Question
How can a TypeError be avoided when you need to combine a string and a number in Python?
Correct Answer
Option C is the correct answer.
Detailed Explanation
The document's 'The Fix' for TypeError states, 'Convert the number to a string first using str().' For example,
"Age: " + str(20).
Hint
The solution involves ensuring both operands of the '+' operator are strings.