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: