0% found this document useful (0 votes)
7 views14 pages

Practical File

This document is a practical file for a Computer Science course for the session 2025-26, authored by Ashwin Surlia from class XI-D. It contains a table of contents listing five programming questions that involve Python tasks such as finding the smallest and largest numbers in a list, creating a student dictionary, performing list operations, and managing a friends' contact dictionary. Each question includes a brief description and space for outputs, indicating a focus on practical coding skills.

Uploaded by

samarth6906
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views14 pages

Practical File

This document is a practical file for a Computer Science course for the session 2025-26, authored by Ashwin Surlia from class XI-D. It contains a table of contents listing five programming questions that involve Python tasks such as finding the smallest and largest numbers in a list, creating a student dictionary, performing list operations, and managing a friends' contact dictionary. Each question includes a brief description and space for outputs, indicating a focus on practical coding skills.

Uploaded by

samarth6906
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like