0% found this document useful (0 votes)
16 views1 page

Practical Assignment 2 CS Xi

Cs

Uploaded by

piyush.28193
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)
16 views1 page

Practical Assignment 2 CS Xi

Cs

Uploaded by

piyush.28193
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/ 1

PRACTICAL ASSIGNMENT – 3 (2024-25)  CLASS – 11 (CS) – Sumission Date: 13/01/2025

Q1. Write a program to calculate mean of a given list of numbers.


Q2. Write a program to find frequencies of all elements of a list. Also, print the list of unique elements in
the list and duplicate elements in the given list.
Q3. Write a program where L is a non-empty list of integers. Print the smallest and largest integer in L.
Q4. Write a program to enter 10 numbers by user and display Second Largest and Second Smallest
Element in the list.
Q5. WAP that takes a string with multiple words and then capitalizes the first letter of each word and
forms a new string out of it.
Q6. WAP that should prompt the user to type some sentence(s) followed by “enter”. It should then print
the original sentence(s) and the following statistics relating to the sentence(s).
a) Number of words b) Number of Characters c) Percentage of char that are alpha numberic.
Q7. WAP that prints the longest word in a list of words
Q8. WAP that creates a tuple storing first 9 terms of Fibbonacci Series?
Q9. Write a program to enter list of 10 Numbers and count the frequency of each element and write
that element in Dictionary where key is the element and value is number of times that element comes in
the list.
Q10. Create a dictionary whose keys are month names and whose values are the number of days in the
corresponding months.
a) Ask the user to enter a month name and use the dictionary to tell them how many days are
in the month
b) Print out all of the keys in alphabetical order
c) Print out all of the months with 31 days
d) Print out the key-value pairs sorted by the number of days in each month

You might also like