0% found this document useful (0 votes)
6 views

Imp Python programs

The document outlines a series of Python programming tasks that involve computing statistical measures (mean, median, mode), manipulating lists and tuples, checking for palindromes, and counting word frequencies. Each task requires the use of modules and focuses on different aspects of data handling and string manipulation. The tasks range from basic operations like summing numbers to more complex operations like counting specific occurrences in data structures.

Uploaded by

Dylan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Imp Python programs

The document outlines a series of Python programming tasks that involve computing statistical measures (mean, median, mode), manipulating lists and tuples, checking for palindromes, and counting word frequencies. Each task requires the use of modules and focuses on different aspects of data handling and string manipulation. The tasks range from basic operations like summing numbers to more complex operations like counting specific occurrences in data structures.

Uploaded by

Dylan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Write a Python program to compute the mean of a list of numbers.

(using
modules)
2. Write a Python program to compute the median of a list of
numbers(using modules)
3. Write a Python program to compute the mode of a list of numbers(using
modules)
4. Write a Python program to find the sum of all even numbers elements in
a tuple/list
5. Write a Python program to find the sum of all numbers in a tuple/list
6. Write a Python program to find the largest or smallest of all elements in a
list/tuple
7. Write a Python program to check whether a given string is palindrome
8. Write a Python program to create a user-defined list
9. Write a Python program to create a user-defined dictionary

10.Write a Python program to create a user-defined tuple

11. Write a Python program to replace all the even numbers in a list of

numbers by multiplying them with 10.

12.Write a Python program to count the number of words in a string


starting with the letter “k”.
13.Write a Python program to count the number of palindrome words in a
given string and display each palindrome word.
14. Write a Python program to count the frequency of numbers in a list. The
number should be the key and the frequency of its occurrence should be
the value in the dictionary

15.Write a Python program to count the frequency of numbers that end with
the digit 4 in a list. The number should be the key and the frequency of its
occurrence should be the value in the dictionary

You might also like