Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

python lab syllabus

The document outlines the syllabus for the Python Programming Lab course for I Year B. Tech. II semester students, detailing course outcomes and modules covering fundamental programming concepts, data structures, functions, and file handling. It includes practical exercises and a case study project, along with reference books and web resources for further learning.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

python lab syllabus

The document outlines the syllabus for the Python Programming Lab course for I Year B. Tech. II semester students, detailing course outcomes and modules covering fundamental programming concepts, data structures, functions, and file handling. It includes practical exercises and a case study project, along with reference books and web resources for further learning.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

R24- Syllabus of CSE-GVPW(A) w.e.f.

2024-25

PYTHON PROGRAMMING LAB


I Year B. Tech. II semester
[Common to CSE, CSE (AI&ML), IT]

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)

Module-1: Basics of Python


1. Write a program to display the statements.
2. Demonstrate about fundamental Data types in Python Programming. (i.e., int, float, complex, bool and
string types)
3. Write a Python program to demonstrate various type conversion functions.
4. Write a program to demonstrate the inbuilt Math function

Module-2: Operators in Python


1. Demonstrate the following Operators in Python with suitable examples.
i) Arithmetic Operators ii) Relational Operators
iii) Assignment Operators iv) Logical Operators
v) Bit wise Operators vi) Ternary Operator
vii) Membership Operators viii) Identity Operators

Module-3: Conditional Branching Statements


1. Write a program to check whether the given number is even or odd
2. Write a program to read marks of a student and display the corresponding grade
3. Write a program to find the largest element among the given numbers (multi-way if-elif-else statements.)

Module-4: Looping/Iterative Statements


1. Implement the following programs using while loop and for loop
i. Display all prime numbers up to n. ii. Print the nth multiplication table.
iii. Print different patterns using loops:

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:

i. Create feedback with name, email, comment ii. Collecting feedback.


iii. Normalizing feedback (e.g., removing extra spaces, converting to lowercase).
iv. Extracting key in formation (e.g., names, email addresses, and comments).
v. Searching for keywords. vi. Replacing certain words.
vii. Formatting feedback for display. viii. Summarizing feedback.

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-9: Sets & Dictionaries


1. Write a program to create two sets and perform the following operations:
i. Union ii. Intersection iii. Difference iv. Asymmetric Difference
2. Write a program to generate a dictionary that contains numbers (between 1 and n) in the form of (x,x*x).
3. Write a program to implement a shopping cart where you can add items with their prices and quantities,
and then calculate the total cost.
4. Banking System: Write a program to create dictionary with customer name and balance and retrieve the
balance for a given customer, deposit a specified amount into a customer's account, Withdraw a specified
amount from a customer's account if sufficient balance is available, Transfer a specified amount from one
customer's account to another's and Remove a customer from the bank's system.

Module-10: Classes and objects


1. Create a class to represent menu items in a restaurant with attributes like name, price, and category.
Implement methods to display menu details and calculate the total cost of a selected list of items.
2. Write a program to read 3 subject marks and display pass or failed using class and object.

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

5. Develop a Python-based movie recommendation system using collaborative filtering.


6. Build a to-do list application that allows users to add, update, delete, and prioritize tasks..
7. Build a patient management system to handle appointments, medical records, and billing.
8. Design a digital menu for a restaurant with options for ordering, bill generation, and inventory
management.
9. Implement a fitness tracking application to log workouts, track progress, and suggest exercise plans.
10. Build a secure online voting platform with user authentication and vote tallying.
11. Create a program to manage recipes, including ingredients, instructions, and nutritional information.
12. Build a travel planning application to manage itineraries, bookings, and budget tracking.
13. Develop an e-learning application with course creation, student enrolment, and progress tracking.
14. Build a car rental management system to handle bookings, returns, and vehicle maintenance.
15. Build a budget planning application to track expenses, income, and financial goals.
16. Develop a cryptocurrency tracking application to monitor prices, market trends, and portfolio
performance.

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

You might also like