Course Plan Python Programming - Theory+Lab
Course Plan Python Programming - Theory+Lab
Name of School
Designation
Cluster
No. of credits 4
Semester 2
Session Jan-May
__________________________ _________________________________
Perform system and application programming using computer system concepts, the
PSO1 principles of data structures, algorithm development, problem-solving, and
optimization techniques.
Apply software development and project management methodologies, integrating
PSO2 principles from both front-end and back-end development, and effectively utilize
contemporary tools and technologies.
Exhibit a commitment to ethical practices, societal responsibilities, and continuous
PSO3 learning, contributing to the advancement of technology and addressing challenges
in diverse computing domains.
Apply Python collections, such as lists, tuples, dictionaries, and sets, along with the
design and implementation of reusable functions, to solve complex programming
CO 2
problems, demonstrating proficiency in data organization, manipulation, and
modular code design.
Program
Outcome PO PO PO PO PO PO PO PO PO PO1 PO1 PO1 PSO
PSO3
Course 1 2 3 4 5 6 7 8 9 0 1 2 1
PSO
Outcome
2
CO 1 - - - - 2 - - - - - - - 2 1 -
CO 2 - - - - 2 - - - - - - - 2 1 -
CO 3 - - - - 2 - - - - - - - 2 1 -
CO 4 - - - - 2 - - - - - - - 2 1 -
CO 5 - - - - 2 - - - - - - - 2 2 -
Average - - - - 2 - - - - - - - 2 1.2 -
Components
Assignment/
Mid End
Course Experiments/ Test/Quiz Any other
Semester Semester
Outcomes Project/Viva
CO 1 10 10 8 14
CO 2 10 10 6 14
CO3 10 10 6 24
CO4 10 10 - 28
20 - - 20
CO5
2 Conditional Statements
3 Loops
4 String and Sets
5 Lists, tuples, dictionary
6 Functions
7 File Handling and Exception Handling
8 GUI and Backend Connectivity
9 Classes and objects
10 Data Analysis and Visualization
UNIT 1
Lectu CO
Topics to be Covered Lecture Date Topics Covered
re covered
UNIT 2
Lectu CO
Topics to be Covered Lecture Date Topics Covered
re covered
List initialization, List
methods, List operations,
6 indexing, slicing, list CO2
comprehension, Nesting in
lists,
Introduction to Functions,
Advantages of using a
function, Defining user defined
function, Parameters, Function
9 CO2
Documentation, Keyword and
Optional Parameters, default
argument, Variable length
Arguments, Scope,
Passing Collections to a
Function, Recursion, map,
filter, Lambda function, Inner
10 CO2
Functions, Passing mutable and
immutable datatypes in
functions.
UNIT 3
Lectu CO
Topics to be Covered Lecture Date Topics Covered
re covered
File Access Modes, File
handling Functions, Writing
Data to a File, Reading Data
11 from a File, Additional File CO3
Methods, With Statement,
Working with Directories,
Applications of File Handling,
Errors vs Exceptions, The
Exception Model, Exception
Hierarchy, Exception Handling
12 CO3
(try, except, else,
finally),Handling Multiple
Exceptions, raise, assert.
UNIT 4
Lectu CO
Topics to be Covered Lecture Date Topics Covered
re covered
UNIT 5
UNIT 6
Lectu CO
Topics to be Covered Lecture Date Topics Covered
re covered
Numpy – Overview, numpy
Ndarray, Datatypes, Array
25 creation, List vs Array, numpy CO5
attributes, numpy operations,
Numpy Broadcasting,
Numpy Functions (String,
mathematical, statistical,
sorting and searching), Numpy
Special functions (reshape(),
26 CO5
sum(), random(), zeros(),
ones(), mean(), dot(), std(),
empty(), arange(),
[Link]()).
Pandas – Overview, Pandas
Data Structures: Series and
Data Frame, Operations on a
Series (head, tail, vector
operations), Data Frame
27 operations( create, display, CO5
iteration, select column, add
column, delete column), Binary
operations in a Data Frame
(add, sub, mul, div), Matching
and broadcasting operations,
Handling Missing data and
filling values, Data
Aggregation, Comparisons,
Boolean reductions, comparing
28 CO5
Series, Combining Data
Frames, Importing/Exporting
Data between CSV files and
Data Frames.
Matplotlib- Introduction,
Matplotlib Pyplot, Plotting,
29 CO5
markers, Line, Labels, Grid,
Customizing plots,
Creating Different Types of
Plots (Line Graph, Bar chart,
30 Histograms, Scatter Plot, Pie CO5
Chart), Creating and working
with Subplots
COURSE PLAN DELIVERY FOR LAB
Session Plan Actual Delivery
CO
Session Experiment to be Covered Session Date Experiment Covered
covered
1 Introduction & Installation
2 Experiment 1 CO1
3 Experiment 1 CO1
4 Experiment 2 CO1
5 Experiment 2 CO1
6 Experiment 3 CO1
7 Experiment 3 CO1
8 Experiment 4 CO2
9 Experiment 4 CO2
10 Experiment 5 CO2
11 Experiment 5 CO2
12 Experiment 6 CO2
13 Experiment 6 CO2
14 Experiment 7 CO3
15 Experiment 7 CO3
16 Experiment 8 CO5
17 Experiment 8 CO5
18 Experiment 9 CO4
19 Experiment 9 CO4
20 Experiment 10 CO5
21 Experiment 10 CO5
22 Project CO5
23 Project CO5
24 Project CO5
25 Project CO5
LIST OF EXPERIMENTS FOR LAB
Experiment 3: Loops
1. Find a factorial of given number.
2. Find whether the given number is Armstrong number.
3. Print Fibonacci series up to given term.
4. Write a program to find if given number is prime number or not.
5. Check whether given number is palindrome or not.
6. Write a program to print sum of digits.
7. Count and print all numbers divisible by 5 or 7 between 1 to 100.
8. Convert all lower cases to upper case in a string.
9. Print the table for a given number:
5*1=5
5 * 2 = 10………..
10. Write a program to print the following pattern
123454321
1234 *4321
123 * * 321
12 * * * 21
1 **** 1
11. Write a program to print the sum of the following series
1+ ½ + 1/3 + ¼ +….+1/n
1. Write a program to count and display the number of capital letters in a given string.
2. Count total number of vowels in a given string.
3. Input a sentence and print words in separate lines.
4. WAP to enter a string and a substring. You have to print the number of times that the
substring occurs in the given string. String traversal will take place from left to right, not
from right to left.
Sample Input
ABCDCDC
CDC
Sample Output
2
5. Given a string containing both upper and lower case alphabets. Write a Python program
to count the number of occurrences of each alphabet (case insensitive) and display the
same.
Sample Input
ABaBCbGc
Sample Output
2A
3B
2C
1G
6. Program to count number of unique words in a given sentence using sets.
7. Create 2 sets s1 and s2 of n fruits each by taking input from user and find:
a) Fruits which are in both sets s1 and s2
b) Fruits only in s1 but not in s2
c) Count of all fruits from s1 and s2
8. Take two sets and apply various set operations on them :
S1 = {Red ,yellow, orange , blue }
S2 = {violet, blue , purple}
1. Scan n values in range 0-3 and print the number of times each value has occurred.
2. Create a tuple to store n numeric values and find average of all values.
3. WAP to input a list of scores for N students in a list data type. Find the score of the runner-
up and print the output.
Sample Input
N=5
Scores= 2 3 6 6 5
Sample output
5
Note: Given list is [2, 3, 6, 6, 5]. The maximum score is 6, second maximum is 5. Hence,
we print 5 as the runner-up score.
4. Create a dictionary of n persons where key is name and value is city.
a) Display all names
b) Display all city names
c) Display student name and city of all students.
d) Count number of students in each city.
5. Store details of n movies in a dictionary by taking input from the user. Each movie must
store details like name, year, director name, production cost, collection made (earning)
& perform the following :-
a) print all movie details
b) display name of movies released before 2015
c) print movies that made a profit.
d) print movies directed by a particular director.
6. Create a contact book where users can store, search, update, and delete contacts. Use
dictionary for storing contacts.
7. Create a Todo list Manager where users can add, view, and remove tasks. Use List for
storing tasks.
Experiment 6: Functions
1. Write a Python function to find the maximum and minimum numbers from a sequence of
numbers. (Note: Do not use built-in functions.)
2. Write a Python function that takes a positive integer and returns the sum of the cube of
all the positive integers smaller than the specified number.
3. Write a Python function to print 1 to n using recursion. (Note: Do not use loop)
4. Write a recursive function to print Fibonacci series upto n terms.
5. Write a lambda function to find volume of cone.
6. Write a lambda function which gives tuple of max and min from a list.
Sample input: [10, 6, 8, 90, 12, 56]
Sample output: (90,6)
7. Write functions to explain mentioned concepts:
a. Keyword argument
b. Default argument
c. Variable length argument
8. Write a program to check whether all the values in a dictionary are same or not using
lambda function.
9. Write a program to create two lists and generate a dictionary with keys from list1 and
values from list2.
Experiment 7: File Handling and Exception Handling
1. Add few names, one name in each row, in “[Link] file”.
a. Count no of names
b. Count all names starting with vowel
c. Find longest name
2. Store integers in a file.
a. Find the max number
b. Find average of all numbers
c. Count number of numbers greater than 100
3. Assume a file [Link] with details of 5 cities in given format (cityname population(in
lakhs) area(in sq KM) ):
Example:
Dehradun 5.78 308.20
Delhi 190 1484
……………
Open file [Link] and read to:
a. Display details of all cities
b. Display city names with population more than 10Lakhs
c. Display sum of areas of all cities
4. Input two values from user where the first line contains N, the number of test cases. The
next N lines contain the space separated values of a and b. Perform integer division and
print a/b. Handle exception in case of ZeroDivisionError or ValueError.
Sample input
10
2$
31
Sample Output :
Error Code: integer division or modulo by zero
Error Code: invalid literal for int() with base 10: '$' 3
5. Create multiple suitable exceptions for a file handling program.
6. Write a program to create a counter to show that how many times the program is executed.
Observations(If any)
___________________________________________________________________________
___________________________________________________________________________
______________________________________________________________________
Remedial Classes
Held Class
Date test
End
Name Mid based
Sl. Rol Sa Sem Improveme
of Sem Venu on
No l p Mark nt
Studen Mark Remedi
. No. ID e s (Y/N)
t s al
Time Classes
Target 60%
Level-1 50%
Level-2 60%
Level-3 70%
H. Method of Evaluation*
I. Passing Criteria
Scale PG UG
Out of 10point scale SGPA – “6.00” in each semester SGPA – “5.0” in each semester
CGPA – “6.00” CGPA – “5.0”
Min. Individual Course Min. Individual Course
Grade – “C” Grade – “C”
Course Grade Point – “4.0” Course Grade Point – “4.0”
J. References:
MOOCs, Online
courses
SUGGESTIONS FOR FACULTY
Faculty members shall encourage students to follow the unit-wise common course content
uploaded in the General Tab of the LMS as the course material.
Faculty members shall regularly monitor students with low attendance and provide timely
counselling. Monthly attendance shortage details shall be communicated to the respective
Course Coordinator. The Course Coordinator shall ensure that cases of attendance shortage
(as per UPES policy) are communicated to students and their parents on a monthly basis.
Topics covered in each class shall be duly recorded in the “Record of Class Teaching” table
in the prescribed [Link] course file (for both theory and laboratory courses) shall be
audited by the respective IQAC members as per the notified audit schedule.
Internal assessment marks shall be communicated to students at the end of every month to
ensure transparency and timely feedback.
For laboratory, a continuous evaluation format shall be followed strictly, as per the breakup
provided in the Guidelines for Result Preparation included in the course file.
Faculty members are required to maintain all course-related files and records for a minimum
period of three (3) years. In case a faculty member proceeds on long leave or separates from
the College/University, the course register/file shall be formally handed over to the Cluster
Head.
The Subject Coordinator shall regularly monitor the effective implementation of all
components of continuous evaluation.e
Faculty members are encouraged to promote self-study among students and guide them to
maintain a Concept Diary. Appropriate weightage under internal assessment (faculty
assessment component) shall be allotted for the same.
Course Outcome (CO) Assessment shall be carried out using two approaches:
a. Direct Assessment, through quizzes, tests, assignments, mid-term, and/or end-term
examinations. Each assessment shall be designed to map to one or more Course
Outcomes, depending on the course structure.
b. Indirect Assessment, through a student feedback survey designed by the faculty (sample
format provided), to be conducted towards the end of the course.
The overall evaluation of Course Outcome attainment shall be performed by analyzing inputs
from both direct and indirect assessments, followed by identification of corrective actions
for continuous improvement. Upon completion of the course, Course Outcome attainment
reports and related documents shall be shared with the Program Coordinator for computation
of Program Outcome attainment.
At the end of the course, faculty members are encouraged to share details of innovative
teaching–learning practices adopted during the course, along with the course plan, in the
format prescribed by IQAC.
Faculty members are encouraged to submit evidence of master/expert lectures conducted or
attended, in accordance with the approved event report format.
Faculty members are also encouraged to provide documented evidence of interventions or
initiatives undertaken for slow learners, average learners, and fast learners, and include the
same in the course completion file.
INDIRECT ASSESSMENT
NAME:
ENROLLMENT NO:
SAP ID:
COURSE:
PROGRAM: