COMPUTER SCIENCE AND ENGINEERING | INFORMATION SCIENCE AND ENGINEERING | ARTIFICIAL INTELLIGENCE AND DATA SCIENCE Etc...



21CSL46 | PYTHON PROGRAMMING LABORATORY


All Programs Are In One PDF File Click To Download

PROGRAM-01

Aim: Introduce the Python fundamentals, data types, operators, flow control and exception handling in Python



A) Write A Python Program To Find The Best Of Two Test Average Marks Out Of Three Test’s Marks Accepted From The User.






B) Develop a Python program to check whether a given number is palindrome or not and also count the number of occurrences of each digit in the input number.








in the input number.



PROGRAM-02

Aim: Introduce the Python fundamentals, data types, operators, flow control and exception handling in Python



A) Write A Python Program To Find The Best Of Two Test Average Marks Out Of Three Test’s Marks Accepted From The User.






B) Develop a Python program to check whether a given number is palindrome or not and also count the number of occurrences of each digit






PROGRAM-03

Aim: Demonstration of manipulation of strings using string methods



A) Write a Python program that accepts a sentence and find the number of words, digits, uppercase letters and lowercase letters.




B) Write a Python program to find the string similarity between two given strings





PROGRAM-04

Aim: Demonstration of manipulation of strings using string methods



A) Write a python program to implement insertion sort and merge sort using lists.










PROGRAM-05

Aim: Demonstration of pattern recognition with and without using regular expressions



a) Write a function called isphonenumber () to recognize a pattern 415-555-4242 without using regular expression and also write the code to recognize the same pattern using regular expression..


b) Develop a python program that could search the text in a file for phone numbers (+919900889977) and email addresses ([email protected])..






PROGRAM-06

Aim: Demonstration of reading, writing and organizing files.



a) Write a python program to accept a file name from the user and perform the following operations 1. Display the first N line of the file 2. Find the frequency of occurrence of the word accepted from the user in the file..

b) Write a python program to create a ZIP file of a particular folder which contains several files inside it...




PROGRAM-07

Aim: Demonstration of the concepts of classes, methods, objects and inheritance..



a) By using the concept of inheritance write a python program to find the area of triangle, circle and rectangle..

b) Write a python program by creating a class called Employee to store the details of Name, Employee_ID, Department and Salary, and implement a method to update salary of employees belonging to a given department...






PROGRAM-08

Aim: Demonstration of classes and methods with polymorphism and overriding.



a) Write a python program to find the whether the given input is palindrome or not (for both string and integer) using the concept of polymorphism and inheritance..




PROGRAM-09

Aim: Demonstration of working with excel spreadsheets and web scraping..



a) Write a python program to download the all XKCD comics..

b) Demonstrate python program to read the data from the spreadsheet and write the data in to the spreadsheet.




PROGRAM-10

Aim: Demonstration of working with excel spreadsheets and web scraping..



a) Write a python program to download the all XKCD comics..

b) Demonstrate python program to read the data from the spreadsheet and write the data in to the spreadsheet.



Click To Download PyCharm


Download

Click To Download Python Excutable File


Download