Working with Lists and Dictionaries
CBSE · Class 11 · Informatics Practices
NCERT Solutions for Working with Lists and Dictionaries — CBSE Class 11 Informatics Practices.
Interactive on Super Tutor
Studying Working with Lists and Dictionaries? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for ncert solutions and more.
1,000+ Class 11 students started this chapter today
24 worked solutions below. Unlock all 47 free in Super Tutor
EXERCISE
1(a)list1 = [12, 32, 65, 26, 80, 10]
list1.sort()
print(list1)Show solution
So after sorting:
- original list: `[12, 32, 65, 26, 80, 10]`
- sorted list: `[10, 12, 26, 32, 65, 80]`
`print(list1)` displays that sorted list.
Not sure why a step works? check your working in Super Tutor
1(b)list1 = [12, 32, 65, 26, 80, 10]
sorted(list1)
print(list1)Show solution
So `list1` remains the same:
`[12, 32, 65, 26, 80, 10]`
Not sure why a step works? check your working in Super Tutor
1(c)list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
list1[::-2]
list1[:3] + list1[3:]Show solution
- Result: `[10, 9, 8, 7, 6]`
- `list1[:3] + list1[3:]` joins the first 3 elements and the remaining elements.
- `list1[:3] = [1, 2, 3]`
- `list1[3:] = [4, 5, 6, 7, 8, 9, 10]`
- Combined result: `[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`
Not sure why a step works? check your working in Super Tutor
1(d)list1 = [1, 2, 3, 4, 5]
list1[len(list1)-1]Show solution
`list1[4]` is the last element of the list, which is `5`.
Not sure why a step works? check your working in Super Tutor
2(a)myList.append([50, 60])Show solution
So starting with `myList = [10, 20, 30, 40]`, after `myList.append([50, 60])` the new list becomes:
`[10, 20, 30, 40, [50, 60]]`
Not sure why a step works? check your working in Super Tutor
2(b)myList.extend([80, 90])Show solution
So if `myList = [10, 20, 30, 40]`, then after `myList.extend([80, 90])` the list becomes:
`[10, 20, 30, 40, 80, 90]`
If the question is treated as continuing from part (a) on the same original list before any change, the correct effect of `extend([80, 90])` is to append `80` and `90` individually. The chapter’s concept is that `extend()` does not add the whole list as one item.
Not sure why a step works? check your working in Super Tutor
3myList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for i in range(0, len(myList)):
if i%2 == 0:
print(myList[i])Show solution
- `i=0` → `1`
- `i=2` → `3`
- `i=4` → `5`
- `i=6` → `7`
- `i=8` → `9`
So the output is:
```python
1
3
5
7
9
```
Not sure why a step works? check your working in Super Tutor
4(a)myList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
del myList[3:]
print(myList)Show solution
Starting list:
`[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`
After deletion, the remaining list is:
`[1, 2, 3]`
Not sure why a step works? check your working in Super Tutor
4(b)myList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
del myList[:5]
print(myList)Show solution
So from:
`[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`
the remaining list is:
`[6, 7, 8, 9, 10]`
Not sure why a step works? check your working in Super Tutor
4(c)myList = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
del myList[::2]
print(myList)Show solution
So elements at indices `0, 2, 4, 6, 8` are removed:
- removed: `1, 3, 5, 7, 9`
- remaining: `2, 4, 6, 8, 10`
Final list:
`[2, 4, 6, 8, 10]`
Not sure why a step works? check your working in Super Tutor
5Differentiate between append() and extend() methods of list.Show solution
extend() adds each element of the given list/iterable separately to the end of the list.
Example:
- `myList.append([50, 60])` → `[..., [50, 60]]`
- `myList.extend([50, 60])` → `[..., 50, 60]`
Not sure why a step works? check your working in Super Tutor
6(a)list1 * 2Show solution
If `list1 = [6, 7, 8, 9]`, then:
`[6, 7, 8, 9] * 2 = [6, 7, 8, 9, 6, 7, 8, 9]`
Not sure why a step works? check your working in Super Tutor
6(b)list1 *= 2Show solution
So the final list becomes:
`[6, 7, 8, 9, 6, 7, 8, 9]`
Not sure why a step works? check your working in Super Tutor
6(c)list1 = list1 * 2Show solution
So the new value of `list1` is:
`[6, 7, 8, 9, 6, 7, 8, 9]`
Not sure why a step works? check your working in Super Tutor
7(a)Percentage of the studentShow solution
So the statement is:
`stRecord[3]`
Not sure why a step works? check your working in Super Tutor
7(b)Marks in the fifth subjectShow solution
The fifth subject is at index `4`, so the statement is:
`stRecord[2][4] = 69`
Not sure why a step works? check your working in Super Tutor
7(c)Maximum marks of the studentShow solution
The maximum mark is found using `max(stRecord[2])`.
So the answer is `99`.
Not sure why a step works? check your working in Super Tutor
7(d)Roll No. of the studentShow solution
So the statement is:
`stRecord[1] = 'A-36'`
Not sure why a step works? check your working in Super Tutor
7(e)Change the name of the student from 'Raman' to 'Raghav'Show solution
To change the name from `'Raman'` to `'Raghav'`, overwrite that element:
```python
stRecord[0] = 'Raghav'
```
This modifies the list because lists are mutable.
Not sure why a step works? check your working in Super Tutor
8(a)print(stateCapital.get("Bihar"))Show solution
From the dictionary:
`"Bihar" : "Patna"`
So the output is:
`Patna`
Not sure why a step works? check your working in Super Tutor
8(b)print(stateCapital.keys())Show solution
So the output is:
`dict_keys(['Assam', 'Bihar', 'Maharashtra', 'Rajasthan'])`
Not sure why a step works? check your working in Super Tutor
8(c)print(stateCapital.values())Show solution
So the output is:
`dict_values(['Guwahati', 'Patna', 'Mumbai', 'Jaipur'])`
Not sure why a step works? check your working in Super Tutor
8(d)print(stateCapital.items())Show solution
So the output is:
`dict_items([('Assam', 'Guwahati'), ('Bihar', 'Patna'), ('Maharashtra', 'Mumbai'), ('Rajasthan', 'Jaipur')])`
Not sure why a step works? check your working in Super Tutor
8(e)print(len(stateCapital))Show solution
There are 4 states in the dictionary, so the output is `4`.
Not sure why a step works? check your working in Super Tutor
print(stateCapital)
Expected output : {3': 1, 's': 4, 'r': 2, 'u': 6, 'w': 0, 'c': 8, 'e': 3, 'o': 5}
- Accept details of the n students (n is the number of students).
- Search details of a particular student on the basis of roll number and display result.
- Display the result of all the students.
- Find the topper amongst them.
- Find the subject toppers amongst them.
- Collect a Bank's application form. After careful analysis of the form, identify the information required for opening a savings account. Also enquire about the rate of interest offered for a savings account.
- The basic two operations performed on an account are Deposit and Withdrawal. Write a menu driven program that accepts either of the two choices of Deposit and Withdrawal, then accepts an amount, performs the transaction and accordingly displays the balance. Remember every bank has a requirement of minimum balance which needs to be taken care of during withdrawal operations.
Enquire about the minimum balance required in your bank.
- Collect the interest rates for opening a fixed deposit in various slabs in a savings bank account. Remembers rate may be different for senior citizens.
Finally, write a menu driven program having the following options (use functions and appropriate data types):
- Open a savings bank account
- Deposit money
- Withdraw money
- Take details such as amount and period for a Fixed Deposit and display its maturity amount for a particular customer.
- Create an administrative user ID and password to categorically add or modify delete a question.
- Register the student before allowing her/him to play a quiz.
- Allow selection of category based on subject area.
- Display questions as per the chosen category.
- Keep the score as the participant plays.
- Display final score.
- What is the name of the site?
- Where is it located?
- District
- State
- When was it built?
- Who built it?
- Why was it built?
- Website link (if any)
Write a Python program to:
- Create an administrative user ID and password to add, modify or delete an entered heritage site in the list of sites.
- Display the list of world heritage sites in India.
- Search and display information of a world heritage site entered by the user.
- Display the name(s) of world heritage site(s) on the basis of the state input by the user.
23 more solved questions in Working with Lists and Dictionaries
Every remaining exercise is solved step by step in Super Tutor, plus practice quizzes and flashcards for this chapter. Free to start.
Stuck on a step?
Ask Super Tutor AI to explain any solution on this page in a simpler way — free, 24x7.
Ask a Doubt FreeFrequently Asked Questions
What are the important topics in Working with Lists and Dictionaries for CBSE Class 11 Informatics Practices?
How to score full marks in Working with Lists and Dictionaries — CBSE Class 11 Informatics Practices?
Where can I get free NCERT Solutions for Working with Lists and Dictionaries Class 11 Informatics Practices?
Sources & Official References
- NCERT Official — ncert.nic.in
- CBSE Academic — cbseacademic.nic.in
- CBSE Official — cbse.gov.in
- National Education Policy 2020 — education.gov.in
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Working with Lists and Dictionaries
Practice Quiz
Test yourself with a quick quiz
Important Questions
Practice with board exam-style questions
Revision Notes
Key points for last-minute revision
Formula Sheet
All formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect visually
Study Plan
Step-by-step plan to ace this chapter
Flashcards
Quick-fire cards for active recall
Syllabus
What topics to cover
For serious students
Get the full Working with Lists and Dictionaries chapter — for free.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan for CBSE Class 11 Informatics Practices.