In this page we are explaining the NCERT Solutions Class 11 Computer Science – Lists, Dictionaries, and Tuples. Our subject matter experts made it easy for all the students to understand the concept.
Lists:
Lists are mutable and the values can be changed by the programmer. They are one of the powerful tools. One list can contain objects, integers, and strings as well. It can be used to implement queues and stacks. Once declared, they can be altered or modified.
Tuples:
Tuples are immutable and the values cannot be changed by the programmer. They are similar to lists but cannot be modified or changed once they are declared. They are easy to make. For example, the days of the week-
days = (‘Sunday’,’Monday’,’Tuesday’,’Wednesday’,’Thursday’,’Friday’,\
‘Saturday”)
The result is like this:
Index | Value |
0 | Sunday |
1 | Monday |
2 | Tuesday |
3 | Wednesday |
4 | Thursday |
5 | Friday |
6 | Saturday |
Learn more about Lists, Tuples and in-depth about Dictionaries from the downloadable solutions given here.
Download NCERT Solutions for Class 11 Computer Science Lists, Dictionaries, and Tuples