0% found this document useful (0 votes)
34 views2 pages

Practical File List Class XI

Uploaded by

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

Practical File List Class XI

Uploaded by

dikshagoplani
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Sno.

Program
1 Write a program to calculate factorial of a number.
2 Write a program in python to display prime numbers in a range given by user.
3 Write a program to display Fibonacci series.
4 Write a menu-driven python program using different functions for the
following menu:

a) Check no. is Palindrome or not


b) Check no. is Armstrong or not
c) Check no. is perfect or not

5 Write a program to search an element in list using binary search.


6 Write a program to search longest and shortest word in the input sentence.
7 Write a program to display the elements present in a list with its frequencies
in dictionary.
For ex:
A=[1,2,1,3,4,3,1]
D={1:3,2:1,3:2,4:1}
8 Write a python program to pass a list to a function and double the odd values
and half even values of a list and display list elements after changing.
9 Write a program to find out whether the entered year is leap year or not.
10 Write a program to count the number of consonants, vowels, uppercase and
lowercase characters in a given string.
11 Write a program to sort the elements using bubble sort.
12 Write a program to sort the elements using insertion sort.
13 Write a python program to find the largest and smallest number in tuple
without using in built functions.
14 Write a python program to create a dictionary with the roll number, name and
marks of n students in a class and display the names of students who have
scored marks above 75.
15 Write a python program to input a formula with some brackets and checks,
and prints out if the formula has same number of opening and closing
paratheses.
16 Write a python program to input a matrix from the user, create its transpose
and display it.
17 Write a program to compare two equal sized lists and print the first index
where they differ.
18 Write a program to calculate mean of means.
Given a nested tuple
T=((1,2),(3,4.15,5.15),(7,8,12,15))
Write a program that displays the mean of individual elements of tuple T and
then displays the mean of theses computed means.
For above tuple it should display as:
Mean element 1: 1.5
Mean element 1: 4.1
Mean element 1: 10.5
Mean of means 5.3666
19 Write a program to create inverted dictionary.
20 Write a program to find the probability of heads and tails while flipping a
coin for 100
times.

You might also like