Python Datastructures Course File
Python Datastructures Course File
COURSE FILE
INSTRUCTOR
Dr.Renjith P N
Associate Professor
Department of Computer Science and Engineering
Hindustan Institute of Technology & Science
INDEX
S.No. Contents
1 Vision, Mission of the Institutety and Department
2 Programme Educational Objectives (PEOs), Programme Outcomes
(POs) and Programme Specific Outcomes (PSOs)
3 Course Outcomes (Cos) with POs and mapping
VISION
MISSION
PEO1. Excel in his/her professional career and/or pursue higher education including research by applying
the knowledge of Computer Science and Engineering.
PEO2. Demonstrate the technical skills to analyze and design appropriate solutions for problems with
social consciousness and ethical values.
PEO3. Adapt themselves to organizational needs by understanding the dynamically changing technologies.
PSO1. To impart the basic knowledge and conceptual understanding of Computing through
mathematical and analytical skills.
PSO2. To develop the skill set of the students in the domains of cyber physical Systems, Algorithm
design Techniques and Enterprise systems security
PSO3. To inculcate the analytical knowledge of the students for innovative system design using
modern tools and techniques.
Document Sl. No: IQACB01 Review Period: Every Semester Validation authority: IQAC
COURSE DELIVERY PLAN
(This document is to be presented to the students during the first week of commencement of
classes and send a soft copy to every student of the class by the course instructor)
BTL-
CO - 1 Identify and execute basic syntax and programs in Python. 80
3
BTL-
CO - 2 Implement file operation and processing files using python. 70
4
BTL-
CO - 3 Solve problems using Python list and their methods. 80
5
Work with Dictionaries and execute programs using BTL-
CO - 4 80
Dictionary. 6
BTL-
CO – 5 Implement Tuples and Programs based on Tuples 75
6
PO 11
PO10
PO12
PSO1
PSO2
PSO3
OUTCOMES (CO)
PO 7
PO 8
PO1
PO2
PO3
PO4
PO5
PO6
PO9
1 CO-1 3 3 2 3 3 2 2 2 1 1 2 3 3 3 3
2 CO-2 3 3 3 2 3 3 2 2 2 1 2 1 3 3 3
3 CO-3 3 3 3 3 3 3 3 3 3 1 1 2 3 3 3
4 CO-4 3 3 3 3 3 3 3 3 2 1 2 3 3 3 3
5 CO-5 3 3 3 3 3 3 3 3 2 2 3 3 3 3 3
CSB4231. Apply practical knowledge to write basic program using Python strengthen Engineering
1 knowledge (PO1), and this in turn helps in analyzing and solving problems (PO2) and
designing and developing solutions to complex engineering problems (PO3). It uses the
research based knowledge to investigate complex problems (PO4), insists in modern tool usage
(PO5), contextual knowledge to assess through Engg. Society (PO6), societal and
environmental contexts, and demonstrate the knowledge of, and need for sustainable
development (PO7), Apply ethical principles (PO8), Individual and team work (PO9),
Communicate effectively on complex engineering activities (PO10), Demonstrate knowledge
and understanding of the engineering and management principles (PO11) and ability to engage
in independent and life-long learning in the context of technological change (PO12). It
improves the ability to analyze basic concepts (PSO1) and helps in developing software
solution to varying complex problems (PSO2) and applies computing and innovative idea using
modern tools and techniques (PSO3).
CSB4231. Implement file operation and processing files to create applications to strengthen
2 Engineering knowledge (PO1), and this in turn helps in analyzing and solving problems (PO2)
and designing and developing solutions to complex engineering problems (PO3). It uses the
research based knowledge to investigate complex problems (PO4), insists in modern tool usage
(PO5), contextual knowledge to assess through Engg. Society (PO6), societal and
environmental contexts, and demonstrate the knowledge of, and need for sustainable
development (PO7), Apply ethical principles (PO8), Individual and team work (PO9),
Communicate effectively on complex engineering activities (PO10), Demonstrate knowledge
and understanding of the engineering and management principles (PO11) and ability to engage
in independent and life-long learning in the context of technological change (PO12). It
improves the ability to analyze basic concepts (PSO1) and helps in developing software
solution to varying complex problems (PSO2) and applies computing and innovative idea using
modern tools and techniques (PSO3).
CSB4231. Implement Solution to problems using Python list and their methods helps to strengthen
3 Engineering knowledge (PO1), and this in turn helps in analyzing and solving problems (PO2)
and designing and developing solutions to complex engineering problems (PO3). It uses the
research based knowledge to investigate complex problems (PO4), insists in modern tool usage
(PO5), contextual knowledge to assess through Engg. Society (PO6), societal and
environmental contexts, and demonstrate the knowledge of, and need for sustainable
development (PO7), Apply ethical principles (PO8), Individual and team work (PO9),
Communicate effectively on complex engineering activities (PO10), Demonstrate knowledge
and understanding of the engineering and management principles (PO11) and ability to engage
in independent and life-long learning in the context of technological change (PO12). It
improves the ability to analyze basic concepts (PSO1) and helps in developing software
solution to varying complex problems (PSO2) and applies computing and innovative idea using
modern tools and techniques (PSO3).
CSB4231. Work with Dictionaries and execute programs using Dictionary will support strengthen
4 Engineering knowledge (PO1), and this in turn helps in analyzing and solving problems (PO2)
and designing and developing solutions to complex engineering problems (PO3). It uses the
research based knowledge to investigate complex problems (PO4), insists in modern tool usage
(PO5), contextual knowledge to assess through Engg. Society (PO6), societal and
environmental contexts, and demonstrate the knowledge of, and need for sustainable
development (PO7), Apply ethical principles (PO8), Individual and team work (PO9),
Communicate effectively on complex engineering activities (PO10), Demonstrate knowledge
and understanding of the engineering and management principles (PO11) and ability to engage
in independent and life-long learning in the context of technological change (PO12). It
improves the ability to analyze basic concepts (PSO1) and helps in developing software
solution to varying complex problems (PSO2) and applies computing and innovative idea using
modern tools and techniques (PSO3).
CSB4231. Implement Tuples and execute programs based on Tuples to strengthen Engineering
5 knowledge (PO1), and this in turn helps in analyzing and solving problems (PO2) and
designing and developing solutions to complex engineering problems (PO3). It uses the
research based knowledge to investigate complex problems (PO4), insists in modern tool usage
(PO5), contextual knowledge to assess through Engg. Society (PO6), societal and
environmental contexts, and demonstrate the knowledge of, and need for sustainable
development (PO7), Apply ethical principles (PO8), Individual and team work (PO9),
Communicate effectively on complex engineering activities (PO10), Demonstrate knowledge
and understanding of the engineering and management principles (PO11) and ability to engage
in independent and life-long learning in the context of technological change (PO12). It
improves the ability to analyze basic concepts (PSO1) and helps in developing software
solution to varying complex problems (PSO2) and applies computing and innovative idea using
modern tools and techniques (PSO3).
COURSE DELIVERY PLAN
Asses Assessmen
Learning Outcome for Pertaini Measurabl Corrective
smen t Method / Duration
Assessment ng COs e Action
t# Activity
Prepared by:
Dr. Renjith,
Associate Professor,
Department of Computer Science and Engineering
UNIT I PYTHON BASICS
Q. No. Questions CO BT Level
1. Distinguish between pseudocode and flowchart. 1 BTL 4
2. Define function with an example. 1 BTL 1
3. Discuss different modes of operation in python. 1 BTL 2
4. Write a simple python program to perform addition of two values. 1 BTL3
5. Distinguish between string and list. 1 BTL 4
6. Infer how does python interpreter work? 1 BTL 5
3. Write a function to perform sorting of given numbers and present a list of odd and
3 BTL 6
even numbers separately.
4. Write a function ‘leftCirculate’ that takes a list as an input and left circulates the
values in the list so that in the final list, each value is left shifted by one position 3 BTL 5
and leftmost value in the original list now appears as the rightmost value.
5. Write a program to delete all the duplicate elements in a list. 3 BTL 5
6. Describe the following
(i) Creating the list
(ii) Accessing values in the lists 3 BTL 1
(iii) Updating the list
(iv) Deleting the list elements
7. (i) Analyze the basic list operations in detail with necessary programs.
3 BTL 4
(ii) Write a Python program to add two matrices.
8. (i) Tell the Python list methods with examples.
(ii) Why it is necessary to have both the functions append and extend? What
is the result of the following expression that uses append where it probably 3 BTL 1
intended to use extend? >>>lst=[1,2,3]
>>>lst.append([4,5,6])
9. Demonstrate the working of +,* and slice operators in python lists and tuples. 3 BTL 3
10. (i) What is a Python Tuple? What are the advantages of Tuple over list?
3 BTL 1
(ii)“Tuples are immutable”. Explain with example.
Assignment -1I
Question:
Python Dictionary
Assignment: 3
1. What does the following Python Program print out?
str1 = "Hello"
str2 = 'there'
bob = str1 + str2
print(bob)
How would you use string slicing [:] to print out 'uct' from the following string?
1
x = 'From marquard@uct.ac.za'
1
2
for letter in 'banana' :
print(letter)
How would you print out the following variable in all upper case in Python?
greet = 'Hello Bob'
7. Which of the following string methods removes whitespace from both the beginning and end
of a string?
strip()
Assignment – 4
https://drive.google.com/drive/folders/1oHuRZEtnkjLPTfOqHWYe_oc64qnBQuZY?usp=s
haring
COURSE MATERIALS
https://drive.google.com/drive/folders/1DLyhL_YJTeW2dEM7HZQGhSpK7mYSyeeo?usp
=sharing
HINDUSTAN INSTITUTE OF TECHNOLOGY AND SCIENCE
Sub. Code: CSD4386 - PYTHON DATA
STRUCTURES
I PERIODICAL EXAMINATION
DEPT COMPUTER SCIENCE AND ENGINEERING SEM III
SECTION DATE 15/09/2020
MAX
DURATION 50 Mins MARKS 30
QUESTIONS
tuple1=(0,1,2,3) tuple2=("python","programming")
tuple3=(tuple1,tuple2) print(tuple3)
(1 Point)
10. 2 2 1
(0,1,2,3)
(0,1,2,3,"python","programming")
((0,1,2,3),("python","programming"))
PART: B
PART B (2 X 10 MARKS = 20 MARKS) -Assignment Type -
QUESTION No choice CO BTL Marks
NO.
II PERIODICAL EXAMINATION
DEPT COMPUTER SCIENCE AND ENGINEERING SEM III
SECTION DATE 12/10/2020
MAX
DURATION 50 Mins MARKS 30
QUESTIONS
Which of the following two Python codes will give same output?
(i) print(tupl[:-1])
(ii) print(tupl[0:5])
10. (iii) print(tupl[0:4]) 3 2 1
(iv) print(tupl[-4:])
If tupl=(5,3,1,9,0)
PART: B
PART B (2 X 10 MARKS = 20 MARKS) -Assignment Type -No
QUESTION choice CO BTL Marks
NO.
CIA - I
100
90
80
70
60
50
40
30
20
10
0
Threshold Total Students secured % of Attainment
CO1 CO2
CSD4386 - PYTHON DATA STRUCTURES
CIA – II Internal Marks
CO2 70 20 95.2381
CO3 80 18 85.71429
CIA II
100
90
80
70
60
50
40
30
20
10
0
Threshold of Cos % of attainment
CO2 CO3
CSD4386 - PYTHON DATA STRUCTURES
Cumulative CIA Internal Marks
Sl. Internal Internal Final
Reg. No Name Assignments Certificates Total 45 Attendance
No Exam 1 Exam 2 Score
1 18101062 sanmitra meakala 12 14 8 5 39 5 44
2 18103029 tharika sundaram 12 14 9 5 40 5 45
3 18103069 Karthikeyan Ponmudi 10 14 5 5 34 5 39
4 18104022 Sai Prithvi 12 14 6 5 37 5 42
5 18104098 Sarangam sai Naveen 10 12 8 5 34 5 39
6 18127071 John Isaac 10 13 7 0 30 5 35
7 18130066 Hari Haran 11 13 7 5 36 5 41
8 18132049 Jenifer Rajkumar 12 13 8 5 38 5 43
9 18134001 Samita Ramesh 13 12 10 5 40 5 45
10 18134002 Albinus Sanjeevan D 11 14 9 5 39 5 44
11 18134006 Akash Venkatesan 12 12 8 5 37 5 42
12 18134009 Arvinth Sitharthaa 11 12 8 5 36 5 41
13 18134014 Ajay Karthi PV 12 14 8 5 38 5 43
14 18134015 Muhammad Sajith 10 13 8 5 36 5 41
15 18134024 Jane Carolyn 11 13 9 4 37 5 42
16 18134026 Girish Murali 10 13 8 5 36 5 41
17 18134029 Aluri Pameela 8 13 8 5 34 5 39
18 18134034 Allen Rafealson 12 14 8 5 39 5 44
19 18134035 Akash Shiv Janardhan 11 13 8 5 37 5 42
20 18134038 Charan Kumar 12 13 9 5 39 5 44
21 18134039 Sourav Sunil 10 13 8 5 36 5 41
0 0 2 21
COURSE EXIT SURVEY
1. Quality of the course content
50
40
30
20
10
0
Excellent Very Good Good Satisfactory Poor
60
40
20
0
Excellent Very Good Good Satisfactory Poor
50
40
30
20
10
0
Excellent Very Good Good Satisfactory Poor
60
40
20
0
Excellent Very Good Good Satisfactory Poor
100
80
60
40
20
0
Excellent Very Good Good Satisfactory Poor
60
50
40
30
20
10
0
6. Did the tutorials in class room helps you to understand how to take the problem?
80
60
40
20
0
Excellent Very Good Good Satisfactory Poor
100
80
60
40
20
0
Excellent Very Good Good Satisfactory Poor
Challenges/Issues in
Topics Suggestion for CQI CQI Remarks
achieving CLO
Course Delivery
Additional lecture
Introduction to 9 Hrs of duration not Plan can
hours may be allotted
Python sufficient incorporate the
and Follow-up Classes
same