PYTHON2024course File (EVEN-CSE)
PYTHON2024course File (EVEN-CSE)
PYTHON2024course File (EVEN-CSE)
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
COURSE PLAN
COURSE INFORMATION SHEET
No. of credits 3
Scheme 2022
1
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
Component Marks
Internal Exam
1. Internal Examinations I,II : 15%
2. Online Quiz/Assignments/Seminars/Mini Project : 10% 50
3. Laboratory : 25%
External Exam
50
Semester End Examination(SEE) : 50%
Total 100
2
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
ApprovedbyAllIndiaCouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
3
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
ApprovedbyAllIndia Councilfor TechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
1. Syllabus
INTRODUCTION TO PYTHON PROGRAMMING
Module1
Python Basics: Entering Expressions into the Interactive Shell, The Integer, Floating-Point, and String Data
Types, String Concatenation and Replication, Storing Values in Variables, Your First Program, Dissecting Your
Program.
Flow control: Boolean Values, Comparison Operators, Boolean Operators,Mixing Boolean and Comparison
Operators, Elements of Flow Control, Program Execution, Flow Control Statements, Importing
Modules,Ending a Program Early with sys.exit().
Functions: def Statements with Parameters, Return Values and return Statements,The None Value, Keyword
Arguments and print(), Local and Global Scope, The global Statement, Exception Handling, A Short Program:
Guess the Number.
Textbook 1: Chapters 1 – 3
RBT: L1, L2, L3
Module2
Lists: The List Data Type, Working with Lists, Augmented Assignment Operators, Methods, Example Program:
Magic 8 Ball with a List, List-like Types: Strings and Tuples, References
Dictionaries and Structuring Data: The Dictionary Data Type, Pretty Printing, Using Data Structures to Model
Real-World Things.
Textbook 1: Chapters 4 – 5
RBT: L1, L2, L3
Module3
Manipulating Strings: Working with Strings, Useful String Methods, Project: Password Locker, Project:
Adding Bullets to Wiki Markup.
Reading and Writing Files: Files and File Paths, The os.path Module, The File Reading/Writing Process,
Saving Variables with the shelve Module,Saving Variables with the print.format() Function, Project:
Generating Random Quiz Files, Project: Multiclipboard.
Textbook1:Chapter6, 8
RBT: L1, L2, L3
Module4
Organizing Files: The shutil Module, Walking a Directory Tree, Compressing Files with the zipfileModule,
Project: Renaming Files with American-Style Dates to European-Style Dates,Project: Backing Up a Folder into a
ZIP File,
Debugging: Raising Exceptions, Getting the Traceback as a String, Assertions, Logging, IDLE‟s Debugger.
4
Textbook1:Chapter9-10
RBT: L1, L2, L3
Module5
Classes and objects: Programmer-defined types, Attributes, Rectangles, Instances as return values, Objects
are mutable, Copying,
Classes and functions: Time, Pure functions, Modifiers, Prototyping versus planning,
Classes and methods: Object-oriented features, Printing objects, Another example, A more complicated
example,Theinit method, The __str__ method, Operator overloading, Type-based dispatch, Polymorphism,
Interface and implementation,
Textbook2:Chapter15-17
RBT: L1, L2, L3
5
6
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
7
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
3. Course Description:
● Learn the syntax and semantics of the Python programming language.
● Illustrate the process of structuring the data using lists, tuples
● Appraise the need for working with various documents like Excel, PDF, Word and Others
● Demonstrate the use of built-in functions to navigate the file system.
● Implement the Object Oriented Programming concepts in Python.
4. Course Outcomes(CO):
Sl. No DESCRIPTION
CO1 Demonstrate proficiency in handling loops and creation of functions.
CO2 Identify the methods to create and manipulate lists, tuples
and dictionaries
CO 3
3 3 3 2 2 2 2 2 2 2
2
CO 3
3 3 3 2 2 2 2 2 2 2
3
CO 3 3 3 2 2 2 2 2 2 2 3
4
CO 3
5 3 3 2 2 2 2 2 2 2 2
8
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
6. Lesson Plan
Course Teaching
Planned Actual Outcomes Methodology
S.lNo. Module wise topics covered
Date Date
9
14 5/4/24 Methods, Example Program: 3/05/24 CO2 L &T
Magic 8 Ball with a List
15 12/4/24 List-like Types: Strings 7/05/24 CO2 L &T
16 13/4/24
Tuples
14/05/24 CO2 L &T
25 7/5/24 Reading and Writing Files: Files and 3/06/24 CO3 L &T
File Paths
26 14/5/24
The os.path Module 4/06/24 CO3 L &T
29 20/5/24
Saving Variables with the 7/06/24 CO3 L &T
print.format() Function
30 21/5/24
Project: Generating Random Quiz 8/06/24 CO3 L &T
Files, Project: Multiclipboard,
10
31 23/5/24 Module4: 10/06/24 CO4 L &T
Organizing Files: The shutil
Module
32 24/5/24 Walking a Directory Tree 11/06/24 CO4 L &T
11
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
ApprovedbyAllIndia Councilfor TechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
WL Web-FacilitatedCourseDelivery/FlippedClassLecture/MultimediaLecture/Animation
SS Student Seminar
T Tutorial/Case-Study/Scenario
GD Group Discussion/Debate/Role-play
12
8. Topics beyond syllabus/advancedtopics/design:
SL PROPOSED RELEVANCE RELEVANCE
Description of Topics Beyond the Syllabus
No. ACTIONS WITH POs WITHPSOs
Module- ● https://www.learnbyexample.org/python/
1,2,3,4,5 ● https://www.learnpython.org/
● https://pythontutor.com/visualize.html#mode=edit
● https://github.com/sushantkhara/Data-Structures-And-Algorithms- withPython/raw/main/Python
%203%20_%20400%20exercises%20and%20solutions%20for%20beginn ers.pdf
10. InternalExaminationPortionsandDate:
Internal Examination Modules Date
13
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
Prepared by Approvedby
Name:RAJASEKARAN K Name:
14
VISION
The Department of Information Science and Engineering aspires to be a globally acclaimed
centre for engineering education and research in field of Information Science and Engineering
and fosters academic and career success through holistic development.
MISSION
OurpurposeatthedepartmentistocreategraduatesinInformationScienceandEngineering.We
arecommittedtoinnovation,creativityandexcellenceinourteaching,learningandresearch.We inspire
integrity, team work, critical thinking, personal development, ethics in our students and
laythefoundationforlifelonglearning.Weservethetechnical,scientific,economic,andsocietal
developmental needs of our communities.
PROGRAMEDUCATIONALOBJECTIVES(PEO’S)
PEO1: To impart knowledge and develop proficiency as information science engineers to solve
wide range of computational and technical problems in IT industry.
PEO2: To impart technical and managerial competencies and skills to be able to work in
scientific and technology organisations, administrative positions in government and even take up
entrepreneurial route.
PSO2:To expertise in the sub domains of Information Science and Engineering such as file
structures, data mining, big data and data analytics to meet industry needs
PSO3: Ability to develop coding skills using relevant programming languages and use of open
source platforms for software application development
15
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
ApprovedbyAllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
StudentList
16
28 1SP23CS087 SANDEEPKUMAR P 2022SCHEME
29 1SP23CS088 SAQIB AHMED 2022SCHEME
30 1SP23CS090 SATYAM KUMAR 2022SCHEME
31 1SP23CS092 SHASHANK HATTI 2022SCHEME
32 1SP23CS093 SHIVARAYANA GOUDA 2022SCHEME
33 1SP23CS094 SHRUTHI B 2022SCHEME
34 1SP23CS095 SHWETHA M 2022SCHEME
35 1SP23CS096 SMITHA D 2022SCHEME
SOUJANYA NAGRAJ
36
1SP23CS097 BANASODE 2022SCHEME
37 1SP23CS098 SPOORTHY B L 2022SCHEME
38 1SP23CS100 SUDHASMITA SAHOD 2022SCHEME
39 1SP23CS102 SUJITH KUMAR 2022SCHEME
40 1SP23CS103 SURYA K S 2022SCHEME
41 1SP23CS105 TAPU DAS 2022SCHEME
42 1SP23CS106 TEJASHRI R 2022SCHEME
43 1SP23CS107 TEVIN BENEDICT S 2022SCHEME
44 1SP23CS108 THEERTHANA N S 2022SCHEME
45 1SP23CS110 UDPTHI S 2022SCHEME
46 1SP23CS112 VAISHNAVI SHIVAPPA BADLI 2022SCHEME
47 1SP23CS113 VANAJAKSHI S REDDY 2022SCHEME
48 1SP23CS114 VANDANA S 2022SCHEME
49 1SP23CS115 VARDHAN S 2022SCHEME
50 1SP23CS116 VEDIKA N 2022SCHEME
51 1SP23CS117 VEERNKI SATWIKA 2022SCHEME
52 1SP23CS118 VIJAY THARUN D 2022SCHEME
53 1SP23CS119 VINAY G S 2022SCHEME
54 1SP23CS120 VISHNU R 2022SCHEME
55 1SP23CS121 VISHNU VARDHAN V S 2022SCHEME
17
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
ASSIGNMENT-1
1.List and explain the use of comparison operator in Python.Write the step by CO1
step execution of the following expression in Python 3/2*4+3+(10/4)**3
2. Explain the control statements if, else, elif with proper syntax and CO1
examples.
3. Explain local and global scope of variable with suitable examples. CO1
4. Program to read the student details like name,usn and marks in three CO1
subjects. Display the student details, total marks and percentage with suitable
messages
5. With Python programming examples to each, explain the syntax and CO2
control flow diagram of break and continue statements.
6. Explain two ways of importing modules into application in python with CO1
syntax with suitable programming examples.
7. Develop a python program for Fibonacci sequence of length n and read n CO1
from console.
8. Explain print(),input(),len(),str(),int() and float() with examples CO1
9. Explain for loop structure with flow chart. Develop a program to all the CO1
odd number using for loop..
10. What are the functions? Explain python function with parameter and CO1
return statement
11. What are the functions? Explain python function with parameter and CO1
return statement
12. Define exception handling. How exceptions are handled in python. write a CO1
program to solve divide by zero execution
13. Write a program to calculate binomial coefficient using factorial. CO2
14. What is List? Explain the concept of list indexing and slicing with CO2
examples.
15.Explain for loop in list with suitable examples CO2
18
QUESTIONBANK
Module1
1) List and explain the use of comparison operator in Python.Write the step by step execution of the following
expression in Python 3/2*4+3+(10/4)**3-2
2) Explain the control statements if, else, elif with proper syntax and examples.
3) With Python programming examples to each,explain the syntax and control flow diagram of break and continue
statements
4) Explain two ways of importing modules into application in python with syntax with suitable programming
examples.
5) Develop a python program for Fibonacci sequence of length n and read n from console.
6) Explain for loop structure with flow chart. Develop a program to all the odd number using for loop
7) Explain print(),input(),len(),str(),int() and float() with examples
8) What are the functions? Explain python function with parameter and return statement
9) Write a program to calculate binomial coefficient using factorial.
10) Explain for loop in list with suitable examples
11) Define exception handling. How exceptions are handled in python. write a program to solve divide by zero
execution
12) Explain local and global scope of variable with suitable examples.
Module2
1) What is List? Explain the concept of list indexing and slicing with examples.
2) write the code to find a value in a list a index().
3) Explain list methods append(),insert(),len(),remove(),sort() with suitable examples.
4) Write a python code for magic 8 ball program
5) Expain for loop in list with suitable examples
6) Explain following methods i) keys(), ii) values, iii) items() in a dictionary
7) How is tuple different from a listand which function is used to convert list to tuple.explain?
8) List the merits of dictionary over list.
9) Read N number from the console and create a list. Develop a program to compute and print mean, variance and
standard deviation and print.
10) Explain the concept of list slicing and list traversing
Module3
19
Module 4
1) What is logging? How this would be used to debug the python program.
2) What is the use of zip? Explain how to create Zip folder.
3) How do you copy files and folder using shutil Module.Explain in detail.
4) What are Assertions.Write the content of an assert Statement.Explain them with examples.
5) Explain the logging module and debug the factorial of number program.
6) What is meant by compressing files?Explain reading,extracting and creating zip files with an example.
7) How does os.walk work in Python?
8) Discuss basicconfig() method to configure the logging module with an example.
9) Write the program to depict Raising exceptions.
10) .write the python Program to accept the sentence and find the number of words,digits,upper case and
lower case letter.
Module 5
20
Course Objectives: This course(BPLCK205B) will enable students to:
21
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
22
®
SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)
23
25 1SP23CS084 SAHANA N N
SAMARTH
26
1SP23CS085 SANGANAGOUDA PATIL
27 1SP23CS086 SANDEEP
28 1SP23CS087 SANDEEPKUMAR P
29 1SP23CS088 SAQIB AHMED
30 1SP23CS090 SATYAM KUMAR
31 1SP23CS092 SHASHANK HATTI
32 1SP23CS093 SHIVARAYANA GOUDA
33 1SP23CS094 SHRUTHI B
34 1SP23CS095 SHWETHA M
35 1SP23CS096 SMITHA D
SOUJANYA NAGRAJ
36
1SP23CS097 BANASODE
37 1SP23CS098 SPOORTHY B L
38 1SP23CS100 SUDHASMITA SAHOD
39 1SP23CS102 SUJITH KUMAR
40 1SP23CS103 SURYA K S
41 1SP23CS105 TAPU DAS
42 1SP23CS106 TEJASHRI R
43 1SP23CS107 TEVIN BENEDICT S
44 1SP23CS108 THEERTHANA N S
45 1SP23CS110 UDPTHI S
VAISHNAVI SHIVAPPA
46
1SP23CS112 BADLI
47 1SP23CS113 VANAJAKSHI S REDDY
48 1SP23CS114 VANDANA S
49 1SP23CS115 VARDHAN S
50 1SP23CS116 VEDIKA N
51 1SP23CS117 VEERNKI SATWIKA
52 1SP23CS118 VIJAY THARUN D
53 1SP23CS119 VINAY G S
54 1SP23CS120 VISHNU R
55 1SP23CS121 VISHNU VARDHAN V S
24
SyllabusCoverage:
FacultyFeedback:
25