python lab syllabus
python lab syllabus
2024-25
L T P C
Course Code: 24CT11RC07
0 0 3 1.5
Course Outcomes: At the end of the Course, the student shall be able to:
CO1: Understand core programming basics and various Operators of Python. (L2)
CO2: Implement programs using conditional statements and loops and strings. (L3)
CO3: Develop functions and strings to perform simple tasks. (L3)
CO4: Make use of various data structures like lists, tuples, sets and dictionaries. (L3)
CO5: Implement Python programs with files, Classes and objects. (L3)
Page 45 of 53
R24- Syllabus of CSE-GVPW(A) w.e.f.2024-25
2. Demonstrate the following control transfer statements in Python with suitable examples.
i. break ii. continue iii. Pass
Module-5: Functions
1. Write a function to find the multiplication of two numbers and demonstrate the usage of parameters and
arguments of a function.
2. Write a program to define a function using default arguments.
3. Demonstrate lambda functions in Python with suitable example programs.
Module-6: Strings
1. Write a program to manage and analyse customer feedback using string operations include:
Module-7: Lists:
1. Write a program to create a list and perform the following operations:
i. + ii. * iii. slicing iv. del
2. Inventory Management: You have a list of items in your warehouse along with their quantities. Write a
program to find out which items are low in stock (quantity less than 10). (use only comprehensions)
3. Employee Performance: You have a list of employee names and their corresponding performance scores.
Write a program to sort the list based on the performance scores in descending order.
4. Sales Analysis: you have a list of sales figures for the past week. Write a program to find the total sales,
the highest sale, the lowest sale, and the average sale.
5. Write a program to calculate the length of each element in a list using map function in python.
Module-8: Tuples
1. Write a program to return the top n’s most frequently occurring chars and their respective counts. e.g.
string=aaaaaabbbbcccc, n=2 should return [(a 6) (b 4)].
2. Write a program to create n iterables of varied sizes and group the values using zip function in python.
3. Student Information: Write a program to create a list of tuples where each tuple contains the student ID,
name, and grade and find the student with the highest grade.
Page 46 of 53
R24- Syllabus of CSE-GVPW(A) w.e.f.2024-25
4. Course Enrolment: Write a program to create list of tuples where each tuple contains the course ID and
the number of students enrolled and find the total number of students enrolled across all courses
5. Faculty Information: Write a program to create a list of tuples where each tuple contains the faculty ID,
name, and department and find all faculty members in a given department.
6. Library Book Tracking: You have a list of tuples where each tuple contains the book ID, title, and number
of copies available. Write a program to find all books with fewer than 5 copies available.
Module-11: Files
1. Write a program to copy the contents of a file to another file.
2. Write a program to compute the number of characters, words and lines in a file.
Case Study:
Select any one application mentioned below
Note: A report has to be submitted by every student at the end of the semester that includes design, coding,
output, etc.
1. Design a Python program to manage inventory, process orders, and handle customer information for an
online store.
2. Create a library system to track books, manage member accounts, and handle book loans and returns.
3. Implement a personal finance management tool to track income, expenses, and generate monthly reports.
4. Create a system to manage student grades, calculate GPAs, and generate academic reports.
Page 47 of 53
R24- Syllabus of CSE-GVPW(A) w.e.f.2024-25
Reference Books:
1. Python Programming: Using Problem Solving Approach by Reema Theraja , Oxford publications
2. Ashok N Kamthane, Amit Ashok Kamthane, Programming and Problem Solving with Python, 1st Edition,
McGraw Hill Education (India), 2018.
Web References:
1. https://www.python.org/doc/
2. https://www.w3schools.com/python/python_reference.asp
3. https://thepythonguru.com/
4. https://www.programiz.com/python-programming
Page 48 of 53