0% found this document useful (0 votes)
4 views2 pages

Python Programming Practical Exercises

The document outlines a practical file for Python programming, featuring various menu-driven programs for list and dictionary operations, prime number calculations, interest calculations, and string manipulations. It also includes programs for file handling with text, binary, and CSV files, as well as stack operations. Additionally, it covers MySQL queries and Python database connectivity for record management.

Uploaded by

abhayranjana767
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)
4 views2 pages

Python Programming Practical Exercises

The document outlines a practical file for Python programming, featuring various menu-driven programs for list and dictionary operations, prime number calculations, interest calculations, and string manipulations. It also includes programs for file handling with text, binary, and CSV files, as well as stack operations. Additionally, it covers MySQL queries and Python database connectivity for record management.

Uploaded by

abhayranjana767
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

Python Practical File

1. List Menu Driven Program


Program to perform add, remove and display operations on a list.

2. Dictionary Menu Driven Program


Program to add, delete and display dictionary elements.

3. Prime Numbers between m and n


Function to display prime numbers between given range.

4. Calculate Interest
Function using different arguments to calculate simple interest.

5. Largest Element in List


Function to find the largest element in a list.

6. Count Vowels
Function to count vowels in a string.

7. Addition with Exception Handling


Handles non-integer input using try-except.

8. Square Root with Custom Exception


Raises exception for negative number.

9. Find and Replace in Text File


Program to replace a word in text file.

10. Binary File Menu Program


Insert, display records using binary file.

11. CSV File Menu Program


Insert, update and delete records.

12. Search in Binary File


Search records using condition.

13. Search in CSV File


Search records using condition.

14. Stack Menu Driven Program


Push, pop and display operations.
15. Dictionary Keys to Stack
Transfer dictionary keys into stack.

Part B – MySQL Queries


Basic, DDL, Select, Group By and Join queries.

Part C – Python Database Connectivity


Insert, update, delete and display records from database.

You might also like