Python Program List
Python Program List
Python Program List
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
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