OOPS - LAB - Course Handouts - 2023 - AIML - 3rd Sem
OOPS - LAB - Course Handouts - 2023 - AIML - 3rd Sem
Course Instructors: Dr. Yadvendra Pratap Singh – Section A, Dr. Preeti Narooka - Section B
Mr. Deepjyoti Choudhury – Section C & F (Pr), Dr. Deepika Shekhawat – Section D) & F (Th), Dr.
Anubha Parasar – Section E
B. Course Outcomes:
o [AI 2132.1] Demonstrate and Define the basic programming skills of Python
programming. [Understanding – BT2 and Remembering – BT1]
o [AI 2132.2] Analyze the concept of data structures and reusability of programs. [Analyzing
– BT4]
o [AI 2132.3] Illustrate and develop the concept of object-oriented programming using
python. [Understanding – BT2 and Apply – BT3]
o [AI 2132.4] Apply packages and exception for solving the problem. [Apply – BT3]
o [AI 2132.5] Evaluate the concept of file handling and analytic use of python libraries.
[Evaluating – BT5]
C. Program Outcomes
E. Assessment Rubrics:
Criteria Description Maximum Marks
Internal Assessment (Formative) Fortnightly evaluation 40
(Record + execution + viva + Quiz)
➢ Weekly performance in lab – 20 Marks
o 10 M – File checking
o 5 M – Practical performance
o 5 M Viva
➢ Quizzes (MCQ 50) – 20 Marks
Mini project 20
End Term Exam (Summative) End Term Exam 40
Total 100
Attendance (Formative) A minimum of 75% Attendance is required to be maintained by a
student to be qualified for taking up the End Semester examination.
The allowance of 25% includes all types of leaves including medical
leaves.
Make up Assignments Students who missed the lab will have to report to the teacher about
(Formative) the absence. A makeup assignment on the topic taught on the day of
absence will be given which has to be submitted within a week from
the date of absence. No extensions will be given on this. The
attendance for that particular day of absence will be marked blank, so
that the student is not accounted for absence. These assignments are
limited to a maximum of 2 throughout the entire semester.
F. Syllabus
Simple Python programs using control structures and Arrays, Programs using Classes, objects,
methods, Programs on Constructors and static members, Programs using Inheritance, Packages,
Interfaces and Generics, Programs using Exceptions and Multithreading, GUI based programs using
various Python concepts.
G. Reference Books:
1. A. Martelli, Python in a Nutshell, (3e), O'Reilly Media, Inc, 2017.
2. J. Georzen, T. Bower, B. Rhodes, Foundations of Python Network
Programming, (3e), APress, 2014.
3. D. M. Beazley, Python Essential Reference, (4e), Pearson Addison-Wesley
Professional, 2009.
4. M. Lutz, Programming Python, (4e), O'Reilly Media, 2010
H. Lecture Plan:
Lect. Topics Session Objective Mode Correspondi Mode of Assessing the
No of ng CO Outcome
Deliver
y
1 Introduction to Make the students familiarize with Lab AI2132.1 Internal Evaluation
Python IDE and the development environment which Home Assignments
Jupyter notebook has been used throughout this External Evaluation
Course series to run python code.
Variables, Program to demonstrate how to Lab AI2132.1 Internal Evaluation
Keywords, declare Keywords, Variables, Home Assignments
Identifiers, Datatypes, and Comments in python. External Evaluation
Literals, Program to demonstrate different
Operators, datatypes and arithmetic operations in
python.
Comments and
datatype.
2 Data Program to create a list and perform Lab AI2132.2 Internal Evaluation
structures: various operations on the list. Home Assignments
List, List Program to demonstrate list slicing in External Evaluation
Slicing and Set python
Program to create set and perform
various operations on the set.
3 Dictionary, Program to create Dictionary and Lab AI2132.2 Internal Evaluation
Tuple, Graph perform various operations on the Home Assignments
dictionary External Evaluation
Program to create Tuple and
perform various operations on the
Tuple.
Program to create Graph using
third party library.
4 Control Program to check whether a Lab AI2132.1 Internal Evaluation
Statement: If, number is even or not. Home Assignments
If else, else if, Program to find the largest number External Evaluation
nested if among the three input numbers
Python program to print prime
numbers in a given range.
Python program to check whether
a number is an Armstrong number
or not.
Python program to check if a year
is a leap year
5-6 For loop, while Python program to construct Lab AI2132.1 Internal Evaluation
loop, do while, various ‘*’ patterns AI2132.2 Home Assignments
Break, Python program to find factorial of External Evaluation
Continue. a number provided by user
Program to find sum of natural
numbers up to nth term
Program to display the Fibonacci
sequence up to nth term
Python program to demonstrate
break and continue
7 Functions Python program to make a Simple Lab AI2132.2 Internal Evaluation
Calculator using function Home Assignments
Python program to print LCM and External Evaluation
HCF for the given numbers
Python program to print factorial
of a number using recursion
Python program to print Fibonacci
series up to nth term using
recursion
8 Python OOPs: Python program to demonstrate the Lab AI2132.3 Internal Evaluation
OOPs concept of class and object. Home Assignments
Concepts, External Evaluation
Object, Class,
Constructors.
9 Inheritance, Python program to demonstrate the Lab AI2132.3 Internal Evaluation
Multilevel concept of multilevel inheritance. Home Assignments
Inheritance, Python program to demonstrate the External Evaluation
Multiple concept of multiple inheritance.
Inheritance.
10 Packages, file Python program to demonstrate the Lab AI2132.4 Internal Evaluation
handling and concept of Packages. Home Assignments
exception Python program to demonstrate the External Evaluation
concept of file handling.
Python program to demonstrate the
concept of
exception.
10 The Python Python program to demonstrate the Lab AI2132.5 Internal Evaluation
Library use of various python library (use Home Assignments
of libraries in string and text External Evaluation
handling) Pandas, Matplotlib,
NUMPY
11 Python GUI Build a temperature converter Lab AI2132.5 Internal Evaluation
using tkinter Home Assignments
Build a Calculator using tkinter External Evaluation
Build a text editor using tkinter
12 Mini Project Python Projects for Beginners: eg. Lab AI2132.1 Internal Evaluation
• Dice roll simulator. AI2132.2 Home Assignments
• Guess the number game. AI2132.3 External Evaluation
AI2132.4
• Random password
generator. Etc.
PO7
PO8
PO9