CBSE Class 11 Computer Science
Question 67 of 104
List Manipulation — Question 3
Back to all questions 3
Question Question 3
From the previous question, give output of expressions that do not result in error.
Answer
- L1 == L2 gives output as false because L1 is not equal to L2.
- L1[3].upper( ) gives output as 'LIST' because L1[3] is 'List' and upper() function converts it to uppercase.
- L2[1][1].upper( ) gives output as 'ANOTHER' because L2[1] ["is", "another"] and L2[1][1] is "another". upper() function converts it to uppercase.