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

IT21L - List of Python Programs - Students

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

IT21L - List of Python Programs - Students

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

Audyogik Shikshan Mandal’s

INSTITUTE OF BUSINESS MANAGEMENT AND RESEARCH


(IBMR- MCA)

Programme: Master of Computer Applications (MCA) A.Y.: 2022-23 (Sem.- II)

Course: Practical – Python Programming Course Code: IT-21L

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.

3. Write a python program for the following:


i. Create list of fruits
ii. Add new fruit in list
iii. Sort the list
iv. Delete last fruit name from list.

4. if-else & Loops:


4(a) WAP to check whether the given number is prime or not.
4(b) Implement a Python program to Calculate GCD of two numbers.
4(c) Implement a Python Program to find the largest number from a list of
numbers.
4(d) Write a program for performing Linear search operation.

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.

10. Exception Handling:


Write a number game program. Ask the user to enter a number. If the number is greater
than number to be guessed, raise a ValueTooLarge exception. If the number is smaller
than the number to be guessed then raise a ValueTooSmall exception and prompt the
user to guess again. Quit the program only when user guesses the correct number.

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

You might also like