Question Detail
Question
What happens if you try to concatenate a string and a number directly in Python, for example,
"Age: " + 20?
Correct Answer
Option B is the correct answer.
Detailed Explanation
The document clearly states under 'Avoid the TypeError' that 'You cannot add a string and a number directly,' leading to an 'Error!' (specifically, a TypeError).
Hint
Look at the 'Avoid the TypeError' section and the 'Mixing Types' example.