CBSE Class 11 Computer Science
Question 31 of 88
Tuples and Dictionary — Question 11
Back to all questionsT = (4, )
Reason — In Python, to create a tuple with a single element, we need to include a trailing comma after the element. This tells Python that we are defining a tuple rather than just using parentheses for grouping. Thus, T = (4, ) creates a tuple with one element.