IT21L - List of Python Programs - Students
IT21L - List of Python Programs - Students
List of Practical
1. Python installation and configuration with windows and Linux.
2. WAP on:
2(a) String- WAP that accept the string from user & display the same string after
removing vowels and space from it.
2(b) Tuple- WAP to store numbers present at the odd index into a new tuple T2.
The given tuple is T1=(10,20,35,45,56,66,77,87, 99,109).
2(c) Dictionary- Write a program to find sum of all items in a Dictionary.
5. Functions:
5(a) WAP using function to check whether the given number is even or odd.
5(b) WAP to find the factorial of a given number using recursion.
5(c) WAP to print Fibonacci series of ‘n’ terms, using recursion.
6. Class:
Write a program using class to simulate Banking. The methods of the class are:
pInfo(private), deposit( ), withdraw( ), checkBalance( ). The attributes must be: Name,
AccNbr(Must generate randomly), Balance (private)
7. Inheritance:
Write a program to multiple inheritance. The base classes are: Internal, External. The
derived class is: Result ( it should inherit properties from both Internal and External
class).
Audyogik Shikshan Mandal’s
INSTITUTE OF BUSINESS MANAGEMENT AND RESEARCH
(IBMR- MCA)
The attributes must be: iM1, iM2, iM3(out of 25), and iTotal
eM1, eM2, eM3(out of 75), and eTotal
Calculate the marks scored and print the percentage obtained along with division. The
division is dependent on following conditions:
If percentage >= 75, HONORS
If percentage is between 74 and 60, I DIVISION
If percentage is between 59 and 40, II DIVISION
Otherwise FAIL.
8. 8(a) Regex: Write a program to validate email, password and mobile numbers.
8(b) Regex Pattern finding: Write a program to matching patterns, matching strings,
capturing groups and finding and replacing strings.
9. Write a multithreading program, where one thread prints square of a number and
another thread prints factorial of a number. Also display the total time taken for the
execution.
11. File operations: Write a program that reads data from a file and calculate the percentage
of vowels and consonants in the file.
12. Draw line graph and bar graph using matplotlib and decorate it by adding various
elements.
13. Draw pie chart and bar chart using library of Python with suitable example.
14. Prepare the pandas data frame from csv file and perform following operations:
i. Fill all ‘NaN’ values with the mean of respective column.
ii. Display last 5 rows.
15. Write a python program to create “employee” collection with fields” (ID, name,
address, phone email and dept) in mongoDB. Perform the following operations.
i. Display all employees in “Accounts” department
ii. Delete employee with ID - 210345
iii. Update phone with new phone for employee ID -123