PPS Python Course Pack-2
PPS Python Course Pack-2
SCHEME
The scheme is an overview of work-integrated learning opportunities and gets students out into the real
world. This will give what a course entails.
Practical
Practical
Tutorial 0 0
Tutorial
Theory
delivery
study
Self-
SEE
CIE
Practical 1 2
Self-study 1 3
Total 5 8
45 0 30 45 50% 50%
Course Lead Dr. Shambhu Kumar Jha Course Ms. Kanchan Naithani
Coordinator
Names Theory Practical
Course Shambhu Kumar Jha Shambhu Kumar Jha
Instructors Vinay Diwedi Vinay Diwedi
Shilpi Gupta Shilpi Gupta
Mandeep Kumar Mandeep Kumar
Richa Kumari Richa Kumari
Ravi Sharma Ravi Sharma
Rakhshita Rakhshita
Rajeswari Rajeswari
Rahuk Kumar Rahuk Kumar
Kanchan Kanchan
Neha Singh Neha Singh
Nitin Sondhi Nitin Sondhi
COURSE OVERVIEW
This course brings together the concepts of problem solving skills using Algorithm, Flowchart,
and pseudo code through the Python programming language. After completion of course, the
student will be able to develop Python programs dealing with a wide variety of subject matter
domains. Topics include Programming Life Cycle for Python, Python Environment, , Control
Statements, Lists and Nested List, Tuple, Sets, Functions. Further it extends a Comparison
between Python programming and C programming language. The course is supplemented with
many hands-on labs.
COURSEPACK |
FORMAT
PREREQUISITE COURSE
PREREQUISITE COURSE NO
REQUIRED
If, yes please fill in the Details Prerequisite Prerequisite course name
course code
COURSE OBJECTIVE
COURSEPACK |
FORMAT
COMPREHENSIVE
Remember Understand Apply Analyse Evaluate Create
CO No.
KL1 KL 2 KL 3 KL 4 KL 2 KL 6
102C.1 √ √ - - - -
102C.2 - √ √ - -
102C.3 - - √ - -
102C.4 - - - - - √
102C.5 - - - - - √
PO1: The program enhances analytics, managerial, communication and computing Application
skills besides inculcating the virtue of self-study.
PO2: Analyze and synthesis computing systems through quantitative and qualitative techniques.
PO3: Design and develop computer programs in the areas related to algorithm, web design,
networking and AI
PO4: Inculcating essential skills are demanded by Indian and Global Software industries through
latest tools of learning. This also includes team-building skills, audio-visual presentations
and personality development programs.
PO5: To develop inter-twining competence in the field of Digital Marketing and Commerce,
Computing Skill and Computational tools.
PO6: To develop practical skills to provide solutions to industry, society and business.
PO7: Understand environmental issues and lead a life with concerns for environment.
PO8: Apply ethical principles and commit to professional ethics and responsibilities and norms
of the computing science practice.
PO9: To make graduates understand cross culture, societal, professional, legal and ethical issues
prevailing in industry.
PO10: Communicate effectively in both verbal and written form.
PO11: To apply standard software engineering practices and strategies in software project
development using open source programming environment to deliver a quality of product
for business success.
PO12: Recognize the need for lifelong learning for continuous enhancement and up graduate of
technological changes in society.
PSO1: Have the ability to work with emerging technologies in computing requisite to industry 4.0.
PSO2: Demonstrate the application development skills learned through technical training and
projects to solve real world problems.
COURSEPACK |
FORMAT
COURSE ARTICULATION MATRIX
TheCoursearticulationmatrixindicatesthecorrelationbetweenCourseOutcomesandProgram
Outcomesandtheirexpectedstrengthofmappinginthreelevels(low,medium,andhigh).
COs#/
PSO1
PSO2
PO10
PO11
PO12
POs
PO1
PO2
PO3
PO4
PO5
PO6
PO7
PO8
PO9
102C.1 - - - - - - - - - - - - 1 -
102C.2 2 - - - - - - - - - - - 1 3
102C.3 - 2 - - - 2 - - - - - - 1 -
102C.4 - - 2 - - 2 - - - - 1 - 1 -
102C.5 - 1 2 - - 3 - - - - 1 2 1 -
COURSE ASSESSMENT
The course assessment patterns are the assessment tools used both in formative and summative
examinations.
CIE
Total SEE
Assessment Tools QUIZ 1 QUIZ 2 / MT LAB LAB Course- CIE
/ AAT AAT EXAM based marks
Project
0 0 X X
Comprehensive 50
0 0 25 0 25 100 100
COURSEPACK |
FORMAT
COURSE CONTENT
(THEORY + PRACTICAL)
Topic Content
Introduction to Problem-solving, and Computer: Components, Algorithm,
Flowchart: Elements, Identifying and understanding input/ output, Branching and
iteration in a flowchart, Pseudo Code: Representation of different construct, converting
flowchart from pseudo-code.
Lists and Nested List: Introduction, accessing the list, Operations using lists, Library
Function and Methods with Lists. Strings: Introduction, accessing items, Length and
performing Concatenation and Repeat operations, Indexing and Slicing, Library
Functions, and Methods. Tuple: Introduction, Accessing Tuples, Operations, Library
Functions and Methods. Sets: Introduction, Operations, Functions. Difference between
THEORY
set and lists. Dictionaries: Introduction, accessing values in dictionaries, Library
Functions, File: Introduction of txt file and its basic operations.
COURSEPACK |
FORMAT
List of Experiments
EXP1: Develop a program about fundamental Data types in Python
Programming. (i.e., int, float, complex, bool and string types)
Exp-12: Demonstrate the different ways of creating list objects with suitable
example programs
COURSEPACK |
FORMAT
tuples in Python with suitable examples: i) len( ) ii) count( ) iii) index( ) iv)
sorted( ) v) min ( ) vi)max( ) vii) cmp( ) viii) reversed( )
Exp-14: Demonstrate the different ways of creating dictionary objects with
suitable example programs.
Exp-18: Create a child class Bus that will inherit all of the variables and
methods of the Vehicle class
Exp-19: Define a property that must have the same value for every class
instance (object)
Exp-20: Demonstrate the concept of Inheritance.
COURSEPACK |
FORMAT
LESSON PLAN FOR COMPREHENSIVE COURSES
FOR THEORY 15 weeks * 3 Hours = 45 Classes) (1credit = 1 Lecture Hour)
FOR PRACTICAL 15 weeks * 2Hours = 30 Hours lab sessions (1 credit = 2 lab hours)
FOR COURSE - BASED PROJECT 15 weeks * 3 Hours = 45 Hours lab sessions
(1 credit = 3 self-Learning hours) (Not to mention in lesion plan)
COURSEPACK |
FORMAT
LESSON PLAN for PRACTICAL COURSES (15 Lab Classes)
SL. Topics
No.
1 Python program to convert the temperature in degree centigrade to
Fahrenheit
2 Python program to find the area of a triangle whose sides are given
3 Python program to find the circumference and area of a circle with a given
radius
13 Python program to find the sum of the digits of an integer using a while loop
15 Python program to display all integers within the range 100 -200 whose sum
of digits is an even number
COURSEPACK |
FORMAT
16 Python program to check whether the given integer is a prime number or
not
22 Python program to find the largest number in a list without using built -in
functions
COURSEPACK |
FORMAT
BIBLIOGRAPHY
Textbook:
1. The Complete Reference Python, Martin C. Brown, McGraw Hill
Other References:
1. Introduction to computing in problem-solving using Python, E Balagurusamy,
McGraw Hill
2. Introduction to programming using Python, Y. Daniel Liang, Pearson
3. Mastering Python, Rick Van Hatten, Packet Publishing House
4. Starting out with Python, Tony Gaddis, Pearson
Swayam/NPTEL/MOOCs:
1. https://onlinecourses.swayam2.ac.in/cec22_cs20/preview
2. https://onlinecourses.nptel.ac.in/noc22_cs32/preview
3. https://onlinecourses.nptel.ac.in/noc19_cs42/preview
WEBLIOGRAPHY
1. https://docs.python.org/3/tutorial/
PROBLEM-BASED LEARNING
COURSEPACK |
FORMAT
Exercises in Problem-based Learning (Assignments)
SNo Problem KL
1 Write a python program to retrieve strings starting with m, and, end with s having K6
5 characters?
COURSEPACK |
FORMAT
13 Print the following pattern K6
22
333
4444
5555
14 Use a loop to display elements from a given list present at odd index positions. K6
15 Use python concept to calculate the sum of series up to n term. For example, if n K6
=5 the series will become 2 + 22 + 222 + 2222 + 22222 = 24690
16 • Create an outer function that will accept two parameters, a and b K6
• Create an inner function inside an outer function that will calculate the
addition of a and b
• At last, an outer function will add 5 into addition and return it
17 Given a two Python list. Write a program to iterate both lists simultaneously and K6
display items from list1 in original order and items from list2 in reverse order.
list1 = [10, 20, 30, 40]
18 Create a new dictionary by extracting the mentioned keys from the below K6
dictionary.
sample_dict = {
"name": "Kelly",
"age": 25,
"salary": 8000,
"city": "New york"}
# Keys to extract
19 Copy elements 44 and 55 from the following tuple into a new tuple. K6
COURSEPACK |
FORMAT
20 Create a child class Bus that will inherit all of the variables and methods of the K6
Vehicle class
21 Create a Bus child class that inherits from the Vehicle class. The default fare K6
charge of any vehicle is seating capacity * 100. If Vehicle is Bus instance, we
need to add an extra 10% on full fare as a maintenance charge. So total fare for bus
instance will become the final amount = total fare + 10% of the total fare.
Note: The bus seating capacity is 50. so the final fare amount should be 5500. You
need to override the fare() method of a Vehicle class in Bus class.
22 Given two lists, l1 and l2, write a program to create a third list l3 by picking an K6
odd-index element from the list l1 and even index elements from the list l2.
l1 = [3, 6, 9, 12, 15, 18, 21]
speed = {'jan': 47, 'feb': 52, 'march': 47, 'April': 44, 'May': 52, 'June': 53, 'july': 54,
'Aug': 44, 'Sept': 54}
26 Write all content of a given file into a new file by skipping line number 5 K6
27 Count all letters, digits, and special symbols from a given string K6
str1 = "P@#yn26at^&i5ve"
28 Given two strings, s1 and s2. Write a program to create a new string s3 made of K6
the first char of s1, then the last char of s2, Next, the second char of s1 and second
last char of s2, and so on. Any leftover chars go at the end of the result.
Given:
s1 = "Abc"
s2 = "Xyz"
COURSEPACK |
FORMAT
Expected Output:
AzbycX
29 Given two .txt files that have lists of numbers in them, find the numbers that are K6
overlapping. One .txt file has a list of all prime numbers under 1000, and the other
.txt file has a list of happy numbers up to 1000.
30 In this challenge, a farmer is asking you to tell him how many legs can be counted K6
among all his animals. The farmer breeds three species:
chickens = 2 legs
cows = 4 legs
pigs = 4 legs
The farmer has counted his animals and he gives you a subtotal for each species.
You have to implement a function that returns the total number of legs of all the
animals.
To enhance their skill set in the integrated course, the students are advised to execute course-based
design projects. Some sample projects are given below:
COURSEPACK |
FORMAT
3 Write a sorting method. Given a list, can you write some code K4
COURSEPACK |
FORMAT