CBSE Class 11 Computer Science
Question 65 of 88
Tuples and Dictionary — Question 30
Back to all questionsThe code raises an error because T1 is not recognized as a tuple but as a string due to the missing comma. A single-element tuple needs a trailing comma, like T1 = ('A',). Therefore, T1 is a string, and concatenating a string with a tuple using T1 + T2 is not allowed, causing the error.