Department of Computer Science &
Engineering
ADVANCED PYTHON PROGRAMMING
(24CSH-623)
M.E. (AI/AIML/CSE) – I Semester
LAB M
LAB MANNUAL 2024
TABLE OF CONTENTS
S. No Contents Page
No.
1 Vision of the University 3
2 Mission of the University 3
3 Vision of the Department 4
4 Mission of the Department 4
5 Program Educational Objectives 5
(PEOs)
6 Program Outcomes (POs) 5
7 Program Specific Outcomes (PSOs) 6
8 Experiential learning components 6
9 Textbooks/reference books 6
10 Assessment Pattern 8
(Practical & Theory )
12 CO-PO Mapping 8
13 List Of Experiments 9
14 Detailed Experiments 11
Vision of the University
“To be globally recognized as a Centre of Excellence for Research,
Innovation, Entrepreneurship and disseminating knowledge by providing
inspirational learning to produce professional leaders for serving the society.”
Mission of the University
M1 Providing world class infrastructure, renowned academicians and ideal
environment for Research, Innovation, Consultancy and Entrepreneurship
relevant to the society.
M2 Offering programs & courses in consonance with National policies for
nation building and meeting global challenges.
M3 Designing Curriculum to match international standards needs of Industry,
civil society and for inculcation of traits of Creative Thinking and Critical
Analysis as well as Human and Ethical values.
M4 Ensuring students delight by meeting their aspirations through blended
learning, corporate mentoring, professional grooming, flexible curriculum and
healthy atmosphere based on co- curricular and extra-curricular activities.
M5 Creating a scientific, transparent and objective examination/evaluation
system to ensure an ideal certification.
M6 Establishing strategic relationships with leading National and International
corporates and universities for academic as well as research collaborations.
M7 Contributing for creation of healthy, vibrant and sustainable society by
involving in Institutional Social Responsibility (ISR) activities like rural
development, welfare of senior citizens, women empowerment, community
service, health and hygiene awareness and environmental protection
Vision of the Department
To be recognized as a leading Computer Science and Engineering department
through effective teaching practices and excellence in research and innovation
for creating competent professionals with ethics, values and entrepreneurial
attitude to deliver service to society and to meet the current industry standards
at the global level.
Mission of the Department
M1: To provide practical knowledge using state-of-the-art technological
support for the experiential learning of our students.
M2: To provide industry recommended curriculum and transparent
assessment for quality learning experiences.
M3: To create global linkages for interdisciplinary collaborative learning
and research.
M4: To nurture advanced learning platform for research and innovation
for students’ profound future growth.
M5: To inculcate leadership qualities and strong ethical values through
value based education.
Program Educational Objectives (PEOs)
PEO 1: To enhance the competence level for tackling real world problems
in industry, academia and research organizations.
PEO 2: To sharpen problem solving ability using in depth analysis based
upon state-of-the-art concepts and technology.
PEO 3: To create awareness about professional ethics, multidisciplinary
approach, entrepreneurial thinking and effective communication.
Program Outcomes (POs)
PO 1: To develop the ability to maintain excellence in the area of computer
science and engineering at a level higher than the requirements in the
bachelor program.
PO 2: To develop an ability to translate theoretical understanding to identify,
formulate, analyse the complex computer science problems and
reaching substantiated conclusions.
PO 3: To develop an ability to design and develop solutions for practical
computer science problems with appropriate consideration for societal
and environmental commitments.
PO 4: To develop an ability to critically analyse existing literature and
develop innovative research- oriented methodologies to address the
gaps identified.
PO 5: To develop an ability to communicate effectively, write and present
technical/research reports/documents on computer science problems by
interacting with the engineering fraternity and with society at large.
Program Specific Outcomes (PSOs)
A Post Graduate of Computer Science and Engineering Program
will be able:
PSO 1: To understand the evolutionary changes in computing, apply standard
practices and strategies to promote research and development, fostering
innovative career paths and meet future challenges.
PSO 2: The ability to incorporate contemporary and evolving computational
problem-solving techniques for paving the way for higher studies,
development of entrepreneurial attitude and for lifelong learning.
A. EXPERIENTIAL LEARNING COMPONENTS
1. Mad Libs Generator
2. Number Guessing
3. Text-based Adventure Game
4. Dice Rolling Simulator
5. Hangman
6. Contact Book
B. TEXTBOOKS/REFERENCE BOOKS
i. TEXTBOOKS
T1 Ashok Namdev Kamthane, Programming and Problem Solving
with Python, Mc Graw HillEducation Publication, ISBN(13):978-93-
87067-57-8.
T2 Introduction to Programming Using Python Author by Y. Daniel Liang, Pearson.
T3 Core Python Programming by Dr. R. Nageswara Rao, DreamTech Publication
ii. REFERENCE BOOKS
R1Kenneth A. Lambert, The Fundamentals of Python: First
Programs, 2011, Cengage Learning, ISBN: 978-1111823705.
R2Allen B. Downey, Think Python, O’Reilly Media
C. ASSESSMENT PATTERN (THEORY)
The performance of students is evaluated as follows:
Theory
Components Continuous Internal Assessment (CAE) Semester End Examination (SEE)
[Formative] [Summative]
Marks 40 60
Total Marks 100
Sr. Direct Weightage Frequency Final BT Levels CO Remarks
No. Evaluation of actual of Task Weightage Mapping (Graded/
Instruments conduct in Internal Non-Graded)
Assessment
1 Assignment 10 marks for One 4 5 CO1, CO2, Graded
each per unit CO3,
assignment CO4,CO5
2 Exam 20 marks for 2 per 20 6 CO1, CO2, Graded
one MST semeste CO3,
r CO4,CO5
3 Surprise test 12 marks for One 4 4 CO1, CO2, Graded
each test per unit CO3,
CO4,CO5
4 Homework NA One per NA Non-Graded
lecture
topic (of 2
questions)
5 PBL / 10 Once 10 5 CO1, CO2, Graded
Case study CO3,
CO4,CO5
6 Discussion NA One NA Non-Graded
Forum per unit
7 Presentation NA NA NA Non-Graded
8 Attendance NA NA 2 Graded
D.ASSESSMENT PATTERN (PRACTICAL)
The performance of students is evaluated as follows:
Practical/ Lab/ Studio
Components Continuous Internal Assessment Semester End Examination (SEE)
[Formative] [Summative]
Marks 60 40
Total Marks 100
Internal Evaluation Components
Sr. Direct Evaluation Weightage of Frequency Final BT Levels CO Remarks
No. Instruments actual of Task Weightage Mapping (Graded/
conduct in Internal Non-Graded)
Assessment
1 Worksheet 30 marks for 10-12 40 5 CO1, CO2, Graded
each experiment CO3,
worksheet CO4,CO5
2 Exam 10 marks for 1 per 12 6 CO1, CO2, Graded
one MST semeste CO3,
r CO4,CO5
3 Experiential 5 marks 1 per 6 4 CO1, CO2, Graded
Learning semeste CO3,
[EXL] -Mini r CO4,CO5
Projects
4. Attendance NA NA 2 Graded
E. CO-PO MAPPING
Course
PO1 PO2 PO3 PO4 PO5 PSO1 PSO2
Outcome
CO1 3 3 2 3 2 1 2
CO2 2 3 2 3 2 1 2
CO3 2 3 2 3 2 2 1
CO4 3 3 2 3 3 3 1
CO5 3 3 2 3 3 2 2
CO PO correlation matrix of
each subject to be mapped
with High correlation (3);
Medium correlation (2); Low
correlation (1)
LIST OF EXPERIMENTS
UNIT-1 INTRODUCTION TO PYTHON PROGRAMMING CONTACT HOURS:10 CO MAPPING
Experiment a) Installation of Python and understanding of basic syntax and semantic rules.
CO1
No 1
b) Write a python program to illustrate the concept of different types of operators.
(a) Write a python program to illustrate the concept of range () Function
CO1, CO2
Experiment (b)Write a python program to demonstrate the use of distinct string functions.
No 2
(c) Write a python program to reverse a string without using inbuilt function.
Write a python program to concatenate two strings without using inbuilt function.
(a) Write a python program to create a list and demonstrate different inbuilt list CO2, CO3
methods.
Experiment
(b)Write a python program to compare two lists.
No 3
(c) Write a python program for performing list slicing.
(d)Write a python program to create a tuple and perform different operations on it
using different inbuilt functions
Write a python program to perform indexing and slicing of a tuple.
(a) Write a python program to create a dictionary CO2, CO3
(b)Write a python program to traverse, add, delete and replace items in dictionaries.
Experiment
(c) Write a python program to create a dictionary that has number of positive and
No4
negative numbers of list.
(d)Write a python program to create a set and demonstrate different inbuilt set
methods.
Unit-2 OOPS Concepts in Python Contact Hours:10
a. Write a python program to demonstrate and define a class and object. CO2, CO3
Experiment
b. Write a python program to create employee class with some attributes and
No 5
methods.
Experiment (a) Write a python program to implement polymorphism using method overloading. CO2, CO4
No 6 (b)Write a python program to implement inheritance using method overriding.
Write a python program to implement abstract class.
(a) Write a python program to understand the use of else and finally block with try
Experiment CO2, CO4
block.
No 7
(b) Write a python program that uses raise and exception class to throw an
exception.
Unit-3 File Handling, Database and Machine Learning Contact Hours:10
a. Write a python program to read and write the contents into a file.
Experiment CO3, CO4
b. Write a python program to demonstrate different inbuilt functions related to file
No 8
handling.
c. Write a python program to count the number of lines in a file..
a. Write a python program to implement Numpy and its related functions like ones( CO3, CO4
Experiment ), zeros( ),arrange( ), reshape( ) etc
No 9 b. Write a python program to read a csv file using Pandas and implement various in
built functions. Also use the data preprocessing functions.
c. Write a python program to illustrate the use of matplotlib for visualizing scatter
plot, pie chart, and bar graph.
(a) Breast Cancer Case Study using Python Libraries.
Experiment CO3, CO4
No 10