NCERT Solutions for Class 11 Informatics Practices Chapter 4 Working with Lists and Dictionaries explain how Python collections change during a program. Collegedunia's PDF covers 22 textbook tasks, including output questions and case studies, for 2026-27 study. Use the explanations to compare your code, trace each statement and check how you handle empty collections or missing keys.

  • Eight exercise questions on lists, dictionaries, methods and output tracing.
  • Ten programming problems, one student management task and three case studies.
  • Worked answers cover slicing, sorting, frequency counts, record searches and menu-driven programs.

Working with Lists and Dictionaries Class 11 Informatics Practices NCERT Solutions

Collegedunia's question order follows NCERT's 2026-27 reprint, including the programming tasks and case studies.

Coding community and practice

Stack Overflow's 2025 Developer Survey covers the broader coding community. In the survey, 70% of people learning to code used YouTube for community.

After comparing an answer, record the first statement where your result differed. Repeat that operation with a shorter list before trying again.

Working with Lists and Dictionaries: Exercise Coverage

The PDF separates short exercise answers from longer programs. Start with the eight exercise questions before building the record-based applications. Their methods explain the changes that later programs make to stored data.

SectionTasksWhat to practise
Exercise8Compare methods, trace slices and explain collection behaviour.
Programming problems10Count values, find a median, remove duplicates and manage records.
Student Management Information System1Store student information and calculate results.
Case studies3Plan bank, quiz and heritage-site applications.

Open the Working with Lists and Dictionaries questions and solutions

Lists and Dictionaries Explained for Class 11

Source: Magnet Brains on YouTube

Lists and Dictionaries: Choose an Index or a Key

Python list indices compared with dictionary key access

A list stores items in a sequence. A dictionary connects each key to a value. Decide how you will look up an item before choosing the collection. Roll numbers can identify student records, while a list can hold marks for several subjects.

NeedExampleMeaning
First list itemmarks[0]Position counting starts at zero.
Last list itemmarks[-1]A negative index counts from the end.
Record for a named keymarks["Anu"]Look up the value belonging to Anu.
Check whether a key exists"Anu" in marksDictionary membership tests keys.

A dictionary key is not a positional index. Modern Python dictionaries preserve insertion order, but access still uses keys. The textbook's older description of dictionaries as unordered should not be used to predict modern Python iteration order.

List Operations: Trace Changes and Return Values

Four steps to trace changes and return values in a Python list

Write the collection after every statement in an output question. Distinguish the changed list from the value returned by a method. An operation can change a list without returning the updated list.

numbers = [4, 1, 3]
result = numbers.sort()
print(numbers)
print(result)
  1. The original list contains 4, 1 and 3.
  2. sort() changes it to [1, 3, 4].
  3. The method returns None, which is stored in result.
  4. The two printed outputs are [1, 3, 4] and None.

sorted(numbers) returns a new list. Use it when the original order must stay available. For more detail on these method rules, see the Python documentation on data structures.

Lists and Dictionaries: Mistakes to Check in Answers

  • append([2, 3]) adds one nested list; extend([2, 3]) adds two items.
  • remove(value) deletes the first matching value; pop(index) removes and returns an item.
  • items[1:4] includes indices 1, 2 and 3. The stop position is excluded.
  • second = first gives another name to the same list, so changes can appear through both names.
  • Check that a key exists before reading a dictionary entry when missing keys are possible.

Working with Lists and Dictionaries: Practice Routine

Use three short practice sessions, then allow extra time for the case-study programs. These are suggested study blocks, not guaranteed completion times.

SessionTaskCheck
20 minutesTrace slices, sorting and list methods.Write the list after each change.
25 minutesWrite frequency and median programs.Try repeated values and even-length lists.
25 minutesWrite dictionary search and update code.Test an existing key and a missing key.

Test the boundary cases before accepting a program. Include an empty collection where the task permits one. For the case studies, list each menu option and the data it changes before writing code.

Working with Lists and Dictionaries: Related Resources

Read the textbook examples if a method is unfamiliar. Use the notes to revise definitions before returning to your own code.

ResourceUse
Working with Lists and Dictionaries Class 11 NotesRevise methods and definitions before attempting a program.
Working with Lists and Dictionaries NCERT Book PDFRead the original examples and question wording.

Class 11 Informatics Practices NCERT Solutions: All Chapters

The other Informatics Practices solutions pages are still pending. Available chapter resources and extra Python practice are linked separately.

ChapterSolutions
1Computer System: solutions page not yet available.
2Emerging Trends: solutions page not yet available.
3Brief Overview of Python: solutions page not yet available.
4Working with Lists and Dictionaries NCERT Solutions
5Understanding Data: solutions page not yet available.

Related Python Practice from Class 11 Computer Science

These Computer Science solutions give extra Python practice. Their question sets differ from the Informatics Practices textbook.

Computer Science chapterPractice focus
Tuples and Dictionaries NCERT SolutionsCompare immutable sequences with key-value collections.
Functions NCERT SolutionsDivide menu-driven case studies into smaller reusable functions.
Strings NCERT SolutionsPractise indexing and slicing on text.

All NCERT Solutions for Class 11 Informatics Practices Chapter 4 Working with Lists and Dictionaries with Step-by-Step Solutions

Open Check Solution for the detailed answer or Alternative Solution for a second explanation.

Exercise

Q 4.1

What will be the output of the following statements?
a) list1 = [12,32,65,26,80,10]
list1.sort()
print(list1)
b) list1 = [12,32,65,26,80,10]
sorted(list1)
print(list1)
c) list1 = [1,2,3,4,5,6,7,8,9,10]
list1[::-2]
list1[:3] + list1[3:]
d) list1 = [1,2,3,4,5]
list1[len(list1)-1]
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 1, p. 75.

Q 4.2

Consider the following list myList. What will be the elements of myList after each of the following operations?
myList = [10,20,30,40]
a) myList.append([50,60])
b) myList.extend([80,90])
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 2, p. 75.

Q 4.3

What will be the output of the following code segment?
myList = [1,2,3,4,5,6,7,8,9,10]
for i in range(0,len(myList)):
if i%2 == 0:
print(myList[i])
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 3, p. 75.

Q 4.4

What will be the output of the following code segment?
a) myList = [1,2,3,4,5,6,7,8,9,10]
del myList[3:]
print(myList)
b) myList = [1,2,3,4,5,6,7,8,9,10]
del myList[:5]
print(myList)
c) myList = [1,2,3,4,5,6,7,8,9,10]
del myList[::2]
print(myList)
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 4, p. 75.

Q 4.5

Differentiate between append() and extend() methods of list.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 5, p. 75.

Q 4.6

Consider a list:
list1 = [6,7,8,9]
What is the difference between the following operations on list1:
a) list1 * 2
b) list1 *= 2
c) list1 = list1 * 2
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 6, p. 76.

Q 4.7

The record of a student (Name, Roll No, Marks in five subjects and percentage of marks) is stored in the following list:
stRecord = ['Raman','A-36',[56,98,99,72,69],78.8]
Write Python statements to retrieve the following information from the list stRecord.
a) Percentage of the student
b) Marks in the fifth subject
c) Maximum marks of the student
d) Roll No. of the student
e) Change the name of the student from ‘Raman’ to ‘Raghav’
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 7, p. 76.

Q 4.8

Consider the following dictionary stateCapital:
stateCapital = {"Assam":"Guwahati",}\\ \texttt{"Bihar":"Patna","Maharashtra":"Mumbai",}\\ \texttt{"Rajasthan":"Jaipur"}
Find the output of the following statements:
a) print(stateCapital.get("Bihar"))
b) print(stateCapital.keys())
c) print(stateCapital.values())
d) print(stateCapital.items())
e) print(len(stateCapital))
f) print("Maharashtra" in stateCapital)
g) print(stateCapital.get("Assam"))
h) del stateCapital["Assam"]
print(stateCapital)
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Exercise 8, p. 76.

Programming Problems

Q 4.9

Write a program to find the number of times an element occurs in the list.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 1, p. 76.

Q 4.10

Write a program to read a list of n integers (positive as well as negative). Create two new lists, one having all positive numbers and the other having all negative numbers from the given list. Print all three lists.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 2, p. 77.

Q 4.11

Write a program to find the largest and the second largest elements in a given list of elements.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 3, p. 77.

Q 4.12

Write a program to read a list of n integers and find their median.
Note: The median value of a list of values is the middle one when they are arranged in order. If there are two middle values then take their average.
Hint: Use an inbuilt function to sort the list.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 4, p. 77.

Q 4.13

Write a program to read a list of elements. Modify this list so that it does not contain any duplicate elements i.e. all elements occurring multiple times in the list should appear only once.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 5, p. 77.

Q 4.14

Write a program to create a list of elements. Input an element from the user that has to be inserted in the list. Also input the position at which it is to be inserted.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 6, p. 77.

Q 4.15

Write a program to read elements of a list and do the following.
a) The program should ask for the position of the element to be deleted from the list and delete the element at the desired position in the list.
b) The program should ask for the value of the element to be deleted from the list and delete this value from the list.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 7, p. 77.

Q 4.16

Write a Python program to find the highest 2 values in a dictionary.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 8, p. 77.

Q 4.17

Write a Python program to create a dictionary from a string ‘w3resource’ such that each individual character mates a key and its index value for fist occurrence males the corresponding value in dictionary.
Expected output: {'3': 1, 's': 4, 'r': 2, 'u': 6, 'w': 0, 'c': 8, 'e': 3, 'o': 5}
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 9, p. 77.

Q 4.18

Write a program to input your friend's, names and their phone numbers and store them in the dictionary as the key-value pair. Perform the following operations on the dictionary:
a) Display the Name and Phone number for all your friends.
b) Add a new key-value pair in this dictionary and display the modified dictionary
c) Delete a particular friend from the dictionary
d) Modify the phone number of an existing friend
e) Check if a friend is present in the dictionary or not
f) Display the dictionary in sorted order of names
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Programming Problems 10, p. 77-78.

Case Study Based Question

Q 4.19

For the SMIS System given in Chapter 3, let us do the following:
Write a program to take in the roll number, name and percentage of marks for n students of Class X and do the following:

  • 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.
(Hint: Use Dictionary, where the key can be roll number and the value an immutable data type containing name and percentage.)
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Case Study Based Question 1, p. 78.

Case Study

Q 4.20

A bank is a financial institution which is involved in borrowing and lending of money. With advancement in technology, online banking, also known as internet banking allows customers of a bank to conduct a range of financial transactions through the bank’s website anytime, anywhere. As part of initial investigation you are suggested to: • 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.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Case Study 1, p. 78-79.

Q 4.21

Participating in a quiz can be fun as it provides a competitive element. Some educational institutes use it as a tool to measure knowledge level, abilities and/ or skills of their pupils either on a general level or in a specific field of study. Identify and analyse popular quiz shows and write a Python program to create a quiz that should also contain the following functionalities besides the one identified by you as a result of your analysis. • 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.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Case Study 2, p. 79.

Q 4.22

Our heritage monuments are our assets. They are a reflection of our rich and glorious past and an inspiration for our future. UNESCO has identified some of Indian heritage sites as World Heritage sites. Collect the following information about these sites: • 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.
Source: NCERT Informatics Practices, Class XI, reprint 2026-27, Chapter 4, Case Study 3, p. 79-80.

Working with Lists and Dictionaries Class 11 NCERT Solutions FAQs

Ques. What does the Working with Lists and Dictionaries solutions PDF cover?

Ans. It covers eight exercise questions, ten programming problems, the Student Management Information System task and three case studies, including their subparts.

Ques. Which textbook edition is used for these Class 11 solutions?

Ans. The questions follow the NCERT Informatics Practices 2026-27 reprint. Lists and dictionaries are also included in the Class 11 Python unit.

Ques. How should I check a Python output answer?

Ans. Write the initial values, run each statement in order and record every changed collection. Compare the printed output separately from method return values.

Ques. Why does assigning the result of sort() produce None?

Ans. The sort() method changes the existing list and returns None. Use sorted() when you need a separate sorted list as the result.

Ques. Does a dictionary keep the order of its entries?

Ans. Current Python preserves insertion order. Values are still accessed by keys, not by numbered positions. Some older textbook descriptions predate this language guarantee.

Ques. How are append() and extend() different?

Ans. append() adds its argument as one item. extend() adds each item from an iterable. Appending a list therefore creates a nested list item.

Ques. Should I read the solutions before writing a program?

Ans. Try the question first. Then compare the method and test your code with normal, repeated and boundary inputs. Rework the first step that produced a different result.

Ques. What is a list in Python?

Ans. A list is a mutable sequence of items. Its elements can have different types, and each position can be accessed with an integer index.

Ques. What is a dictionary in Python?

Ans. A dictionary is a mutable mapping from unique, hashable keys to values. Assigning a value to an existing key replaces its previous value.

Ques. What are list slices?

Ans. Slices select a sequence of list items using start, stop and optional step values. The stop index is excluded, and omitted limits use suitable sequence boundaries.