NCERT Solutions Class 11 Computer Science – Lists, Dictionaries, and Tuples

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:

IndexValue
0Sunday
1Monday
2Tuesday
3Wednesday
4Thursday
5Friday
6Saturday

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

Leave Your Answer