0% found this document useful (0 votes)
6 views9 pages

mutta singh

The document outlines a series of programming exercises in Python, focusing on data structures like dictionaries and lists. Each program requires input and output operations, including storing and manipulating student and employee information, performing searches, and modifying data. The exercises aim to enhance programming skills through practical applications of Python concepts.
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)
6 views9 pages

mutta singh

The document outlines a series of programming exercises in Python, focusing on data structures like dictionaries and lists. Each program requires input and output operations, including storing and manipulating student and employee information, performing searches, and modifying data. The exercises aim to enhance programming skills through practical applications of Python concepts.
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
You are on page 1/ 9

PROGRAM-1

WAP to input total number of sections and stream name in 11th class and display all
information on the output screen.

output:

Program-2

Wap to store students' information admission number ,roll number,name,marks in a dictionatry


and display information on the basis of admission number.

1
Output:

Program-3

Wap a program to create a dictionary with roll number ,name and marks of'n' students in a class
and display the names of students who have scored more than 75 per cent.

2
Output:

Program-4

3
Wap to input your friends' names and their phone numbers and store them in the dictionary as
the key-value pair.

performs the following operations on the dictionary:

(a) Display the name and phone no. of all your friends

(b) Add a new key value pair in the dictionary and display modified dictionary.

(c) Delete the details of a particular friend from dictionary

(d) Modify the phone no. of an existing friend.

(e) Check if the details of a friend is present in dictionary or not.

(f) Display the dictionary in sorted order of names.

4
Output:

5
Program-5

Wap to enter names of employees and their salaries as input and store them in a
dictionary(using for loop).

Output:

6
Program-6

Write a python script to input a number and count the occurrences of that number in a given
list.

list1=[10, 20 ,30, 40, 10, 50, 10]

Output:

Program-7

write a python script to input a number and perform linear search.

Output:

7
Program-8

Wap to shift every element of a list to circlary right,e.g.,

Output:

Program-9

Wap to exchange first-half elements of list with second-half elements assuming list is having
even number of elements.

l=[10,20,30,40,50,60,70]

Output:

Program=10

Wap to enter a number and check if it is a prime number or not

8
Output:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy