0% found this document useful (0 votes)
3 views3 pages

Python Programming Tasks List

ethrthbwrhtbvgrthgqb aetharthartgb aergaeag

Uploaded by

himankjain6693
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)
3 views3 pages

Python Programming Tasks List

ethrthbwrhtbvgrthgqb aetharthartgb aergaeag

Uploaded by

himankjain6693
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

LIST OF PROGRAMS

1.​ Write a program to check whether the entered string is a palindrome or not.​

2.​ Write a program to show statistics of characters in a given line (to count alphabets,
digits, uppercase, lowercase, spaces, and other characters).​

3.​ Write a program to remove all odd numbers from the given list.​

4.​ Write a program to display the frequencies of all the elements of a list.​

5.​ Write a program to display those strings which start with ‘A’ from the given list.​

6.​ Write a program to find and display the sum of all the values that end with 3 from a list.​

7.​ Write a program to show sorting of elements of a list step-by-step.​

8.​ Write a program to swap content with the next value if it is divisible by 7 so that the
resultant array looks like: 3, 5, 21, 6, 8, 14, 3, 14.​

9.​ Write a program to accept values from the user and create a tuple.​

10.​Write a program to input total number of sections and the stream name in Class 11 and
display all the information.​

11.​Write a program to input the names of ‘n’ countries with their capital and currency, store
it in a dictionary, display it in tabular form, and search for a particular country.​

12.​Write a program to show elements of a two-dimensional list in 2-D array format.​

13.​Write a program to show the sum of the major and minor diagonals of a 2-D list.​

14.​Write a program to find the factorial of an entered number using the library function
fact().​

15.​Write a program to call a user-defined function great() to find the greater of two
entered numbers.​

16.​Write a program to show all non-prime numbers in the entered range.​

17.​Write a program to show the Fibonacci series.​


18.​Write a program to find the GCD of two positive numbers.​

19.​Write a menu-driven program to perform Linear Search, Binary Search, and find the
lowest number from a list using functions.​

20.​Write a program to show and count the number of words in the text file [Link] that
start or end with the word “The/the”.​

21.​Write a program to read data from [Link] and display each word with the number of
vowels and consonants.​

22.​Write a program to read data from [Link] and display the words with maximum and
minimum characters.​

23.​Write a program to write a string into a binary file [Link] and count the number of
times each character appears using a dictionary.​

24.​Write a program to write a string into a binary file [Link] and display the words of the
string in reverse order.​

25.​Consider a binary file [Link] containing details such as empno:ename:salary


separated by colons. Write a Python function to display details of employees earning
between 20,000 and 40,000.​

26.​Write a program to rotate the elements of a list so that each element shifts to the next
index and the last element moves to the first index.​

27.​Write a program to insert an item at a selected position in a list and print the updated list.​

28.​Write a program to perform Bubble Sort or Insertion Sort using user-defined functions.​

29.​Write a program to show push and pop operations using a stack.​

30.​Write a program to create a database and table in MySQL using Python.​

31.​Write a program to add a record to a MySQL table using Python.​

32.​Write a program to update a record in a MySQL table using Python.​

33.​Write a program to delete a record from a MySQL table using Python.​

34.​Write a program to show all records of a MySQL table using Python.​

35.​Write a program to show selective records of a MySQL table using Python.

You might also like