COMPUTER SCIENCE
PRACTICAL FILE
SESSION – 2025-26
NAME: ASHWIN SURLIA CLASS & SECTION: XI - D
Table of contents
1. Question 1—————————-1
2. Question 2—————————-3
3. Question 3—————————-5
4. Question 4—————————-7
5. Question 5—————————-10
Question 1.
Write a python program to input a list of numbers
and find smallest and largest number from the
list.
1
Output :
2
Question 2:
Write a python program to create a dictionary with
roll no, name and marks of n students in a class
and display the names of students who have
scored marks above 75.
3
Output :
4
Question 4:
Write a menu driven program to perform various
list operations:
• append an element
• Insert an element
• Append a list to the given list
• Modify an existing element
• Delete an existing element from ist position
• Delete an existing element with a given value
• Sort the list in ascending order
• Sort the list in descending order
• Display the list
7
8
Outputs :
9
Question 3:
Write a python program that inputs two tuples
and creates a third that contains all elements of
the first followed by all elements of the second
5
Output :
6
Question 5:
Write a program to input your friends’ names and
their phone numbers and store them in a dictionary
as the key value pair. Perform the following
operations on the dictionary:
• Display the name and phone number of all your
friends
• Add a new key value pair in this dictionary and
display the modified dictionary
• Delete a particular friend from the dictionary
• Modify the phone number of an existing friend
• Check if a friend is present in the dictionary or
not
• Display the dictionary in sorted order of names
10
11
Output :
12