Python Program List

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 4

LIST OF PYTHON EXPERIMENTS FOR

EXTERNAL PRACTICAL
1. Program to count the number of each vowel in a string.
2. Program to sort alphabetically the words form a string provided by the user.
3. Program to transpose a matrix using nested loop.
4. Program to multiply two matrices using nested loops.
5. Write a program for handling file operation errors.
6. Write a program to display student’s information using multiple inheritances.
7. Write a program to display customer information using multilevel inheritance.
8. a. Write a Python program to calculate number of days between two dates.
Sample dates : (2014, 7, 2), (2014, 7, 11)
b. Write a Python program to display the examination schedule. (extract the date from
exam_st_date)
c. Write a Python program to print the calendar of a given month and year.
d. Write a Python program to get file creation and modification date/times
e. Python program to convert time from 12 hour to 24 hour format

9. Write a Python program to create a histogram from a given list of integers.


10. Write a Python program that will accept the base and height of a triangle and compute the
area.
11. Write a Python program to compute the greatest common divisor (GCD) of two positive
integers.
12. Write a Python program to get the least common multiple (LCM) of two positive integers.
13. a. Write a Python program to get OS name, platform and release information.
b. Write a Python program to find out the number of CPUs using
c.Write a Python program to check whether a file exists
d.Write a Python program to list all files in a directory in Python
e. Write a python program to access environment variables.
14. a. Write a python program to sum of the first n positive integers.
b.Write a Python program to convert height (in feet and inches) to centimeters.
c.Write a Python program to convert the distance (in feet) to inches, yards, and miles.
d.Write a Python program to convert all units of time into seconds.
15. Python program to print all Prime numbers in an Interval
16. Python Program for How to check if a given number is Fibonacci number?
17. Python program to find second largest number in a list
18. Write a program to remove duplicate elements from list.
19. Python program to print even length words in a string
20. Python | Count the Number of matching characters in a pair of string
21. Remove all duplicates from a given string in Python
22. Python | Program to check if a string contains any special character
23. Python program to find the sum of all items in a dictionary
24. Python | Print an Inverted Star Pattern
Print Diamond Pattern
Program to print the pattern ‘G’
Program to print the given Z Pattern
Program to print the pattern "GFG"
Print the given pattern recursively
Program to print the pattern "D"
Program to print the pattern "H"

Find the position from where the parenthesis is not balanced

Write a program to get all substrings of given string


25. a. Write a program to converts json data into python Dictionary
b.Write a Python program to convert Python object to JSON data.

26. Write a Python program to print a long text, convert the string to a list and print all the
words and their frequencies.
27. Write a Python program to count the number of each character of a given text of a text file.
28. Write a Python program to get all strobogrammatic numbers that are of length n.
A strobogrammatic number is a number whose numeral is rotationally symmetric, so that it
appears the same when rotated 180 degrees. In other words, the numeral looks the same
right-side up and upside down (e.g., 69, 96, 1001).
For example,
Given n = 2, return ["11", "69", "88", "96"].
Given n = 3, return ['818', '111', '916', '619', '808', '101', '906', '609', '888', '181', '986', '689']
29. Write a Python program to find the number of notes (Sample of notes: 10, 20, 50, 100, 200
and 500 ) against an given amount.
30. Write a Python program to find the number of divisors of a given integer is even or odd.
31. Write a Python program to combine each line from first file with the corresponding line in
second file.
32. Write a Python program to make two given strings (lower case, may or may not be of the
same length) anagrams removing any characters from any of the strings.
33. Write a Python program to count Uppercase, Lowercase, special character and numeric
values in a given string.
34. Perform following operations with Hospital Database
a.: Connect to the database and print its version
b.Read given Hospital and Doctor Information
c. Get List Of Doctors as per Speciality
d.Get List of doctors within a given Hospital
e. update doctor experience in years
37. Create a basic calculator using python GUI(Tkinter)
38. Create a GUI application which for student info.(use mysql database backend)
39. Create a GUI for login page and connect with database..
40. Write a program for e-mail sending in python
41. Write a simple client-server python program using socket
42 Write a program to print Armstrong number from 1 to 10000
43.Write a program to print Perfect number from 1 to 10000
44. Write a program to print Special number from 1 to 10000
45. Write a program to reverse alternative word in a given string
46. Write a program for following
input: a3b5c7
output:adbgcj
46. Write a program for following
input: a3b2c4
output: aaabbcccc

You might also like