What is the output of print(len([1, [2, 3], 4]))?
Show answerHide answer
Correct answer: (C) 3
Explanation
The nested list counts as one element: 3 elements.
Correct answer: (C) 3
Explanation
The nested list counts as one element: 3 elements.
This is question 142 of DSSSB TGT Computer Science Full Mock Test 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.