PYTHON2024course File (EVEN-CSE)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 25

®

SOUTHEASTASIANEDUCATIONTRUST
S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)

DEPARTMENTOF COMPUTER SCIENCE & ENGINEERING

COURSE PLAN
COURSE INFORMATION SHEET

Course Name/Subject Code INTRODUCTION TO PYTHON


PROGRAMMING
/BPLCK205B
Degree/Branch Artificial intelligence & Data
Science.
Name of the course teacher/s & RAJASEKARAN K
Designation Assistant Professor

Course Category Core

Course Teacher Contact Details


7708126164
(Email & Mob. No)

Semester & Academic year II, 2 0 2 3 -2024(Even Semester)

No. of credits 3

Scheme 2022

Term Dates 06-03-2024 to 29-06-2024

1
®
SOUTHEASTASIANEDUCATIONTRUST

S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)

DEPARTMENT OF INFORMATION SCIENCE&ENGINEERING

Weightage of Marks (2018 Scheme)

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)

PROGRAMME OUTCOMES (PO)


1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and an
engineering specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyse complex engineering problems
reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering
sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and design system
components or processes that meet the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research methods including
design of experiments, analysis and interpretation of data, and synthesis of the information to provide valid
conclusions.
5. Moderntool usage: Create, select, and apply appropriate techniques, resources,and modernengineering and IT
tools including prediction and modelling to complex engineering activities with an understanding of the
limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal, health,
safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering
practice.
7. Environment and sustainability: Understand the impact of the professional engineering solutions in societal
and environmental contexts, and demonstrate the knowledge of, and need for sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader in diverse teams,
and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the engineering community
and with society at large, such as, being able to comprehend and write effective reports and design
documentation, make effective presentations, and give and receive clear instructions.
11. Projectmanagementandfinance:Demonstrateknowledgeandunderstandingofthe
Engineeringandmanagementprinciplesandapplythesetoone’sownwork,asamemberandleaderinateam, to manage
projects and in multidisciplinary environments.
12. Life-long learning :Recognize the need for and have the preparation and ability to engage in independent and
life -long learning in the broadest context of technological change.

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)

2. Faculty TimeTable & ClassTime Table:

S.E.A. COLLEGE OF ENGINEERING & TECHNOLOGY, BANGALORE-49


DEPARTMENT: ISE
CLASS TIME TABLE (Academic Year 2023-24, Even Semester)
Faculty Name: Prof.RAJASEKARAN K WEF:06/03/2024

DAY\TIME 8.30-9.30 9.30-10.30 10.45-11.45 11.45-12.45 1.30-2.25 2.25-3.30 3.30-4.15


MONDAY G-PLC
TUESDAY E-PLC
WEDNESDAY E-PLC G-PLC
THURSDAY G-PLC E-PLC
FRIDAY
SATURDAY E-PLC G-PLC

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

CO3 Develop programs for string processing and file organization


CO4 Interpret the concepts of Object-Oriented Programming as used in Python.

5. Course Articulation Matrix 33

COs POs PSOs


PO PO PO PO PO PO PO PO PO PO1 PO1 PO1 PSO PSO PSO
1 2 3 4 5 6 7 8 9 0 1 2 1 2 3
CO 3 3 3 2 2 2 2 2 2 2 3
1

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

1 7/3/24 Entering Expressions into the 26/03/24 CO1 L &T


Interactive Shell
9/3/24 The Integer, Floating-Point, and L &T
2 String Data Types 28/03/24 CO1

12/3/24 String Concatenation and L &T


3 Replication, Storing Values in 2/04/24 CO1
Variables, Your First Program,
Dissecting Your Program
14/3/24 Flow control: Boolean Values, L &T
4 Comparison Operators, Boolean 4/04/24 CO1
Operators,Mixing Boolean and
Comparison Operators
15/3/24 Elements of Flow Control, Program L &T
5 Execution 5/04/24 CO1
19/3/24 Flow Control Statements, L &T
6 12/04/24 CO1
7 21/3/24 Flow Control Statements, 13/04/24 CO1 L &T
22/3/24 Importing Modules,Ending a Program L &T
8 Early with sys.exit(). 18/04/24 CO1
9 23/3/24 Functions: def Statements with 19/04/24 CO1 L &T
Parameters,
26/3/24 Return Values and return L &T
10 Statements,The None Value 22/04/24 CO1
28/3/24 Keyword Arguments and print(), L &T
11 Local and Global Scope, Keyword 25/04/24 CO1
Arguments and print(), Local and
Global Scope
12 2/4/24 Lists: The List Data Type, Working L &T
with Lists 27/04/24 CO2

13 4/4/24 Augmented Assignment Operators, 02/05/24 CO2 L &T

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

17 18/4/24 References. 16/05/24 CO2 L &T

18 19/4/24 Dictionaries and Structuring Data: 17/05/24 CO2 L &T


The Dictionary Data Type
19 22/4/24 Pretty Printing 20/05/24 CO2 L &T

20 25/4/24 Using Data Structures to Model Real- 21/05/24 CO2 L &T


World Things
21 27/4/24
Manipulating Strings: Working with 23/05/24 CO2 L &T
Strings
22 2/5/24 Useful String Methods 24/05/24 CO3 L &T

23 3/5/24 Project: Password Locker 28/05/24 CO3 L &T


24 3/5/24 Project: Adding Bullets to Wiki 31/05/24 CO3 L &T
Markup

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

27 16/5/24 The File Reading/Writing Process 5/06/24 CO3 L &T

28 17/5/24 Saving Variables with the shelve 6/06/24 CO3 L &T


Module

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

33 25/5/24 Compressing Files with the 13/06/24 CO4 L &T


zipfile Module

34 28/5/24 debugging: Raising Exceptions 13/06/24 CO4 L &T

35 31/5/24 Getting the Traceback as a String CO4 L &T

36 3/6/24 Assertions 14/06/24 CO4 L &T

37 4/6/24 Logging, IDLE‟s Debugger. 21/06/24 CO4 L &T

38 5/6/24 Module-5Classes and 25/06/24 CO4 L &T


objects: Programmer-
defined types,
Attributes, Rectangles,
39 6/6/24 Instances as return values, 26/06/24 CO4 L &T
Objects are mutable, Copying
40 7/6/24 Classes and functions: Time, 26/06/24 CO4 L &T
Pure functions, Modifiers,
Prototyping versus planning
41 8/6/24 Classes and methods: Object- 27/06/24 CO4 L &T
oriented features, Printing objects
42 10/6/24 Another example, A more 28/06/24 CO4 L &T
complicated example,Theinit
method, The __str__ method
43 11/6/24 Operator overloading, Type- 29/06/24 CO4 L &T
based dispatch, Polymorphism,
Interface and implementation,

11
®
SOUTHEASTASIANEDUCATIONTRUST

S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
ApprovedbyAllIndia Councilfor TechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)

Course Delivery and Teaching Methodology used.


ABBREVIATION TEACHINGMETHODOLOGY

L Classroom Lecture(Chalk and Talk)

WL Web-FacilitatedCourseDelivery/FlippedClassLecture/MultimediaLecture/Animation

SS Student Seminar

T Tutorial/Case-Study/Scenario

P Practical/Laboratory Demonstration/Model Demonstration/Simulation

GD Group Discussion/Debate/Role-play

GL Guest Lecture/Workshop/Interview with Experts/Webinars

IV Industrial Visit/Field Trip

PD Project Design/Project Demonstration/Literature Survey

7. Textbooks and Reference Books:


Sl. Book Name Author(s) Publisher Year, Edition
“Automate the Boring
Stuff with Python” Al Sweigart No Starch Press 2015, 1st Edition
1
Text
Books
“Think Python: How Green Tea
Allen B. Downey
to Think Like a Press
2 2015, 2nd Edition
Computer Scientist”

12
8. Topics beyond syllabus/advancedtopics/design:
SL PROPOSED RELEVANCE RELEVANCE
Description of Topics Beyond the Syllabus
No. ACTIONS WITH POs WITHPSOs

1. Pattern matching Special class


PO9,PO10 PSO2

9. Teaching and Learning with Electronic Repository

Unit No. &


Module Weblink
Name

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

InternalExamination-I Module1&Module2 28th April 2024

InternalExamination-II Module3&Module4 18th June 2024

SemesterEndExamination Modules 1,2,3,4,5

13
®
SOUTHEASTASIANEDUCATIONTRUST

S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)

11. Weightage for Direct and Indirect assessment tools


Assessment Tools Percentage of Weightage

Direct Assessment Tools InternalExaminationI,II 40 %

Direct Assessment Tools SemesterEndExamination(SEE) 50 %

Case Study Solutions / Team


Indirect Assessment Tools
Assignments/NPTELCourses 10 %

Prepared by Approvedby

Name:RAJASEKARAN K Name:

Signature with Date: Signature with Date:

Designation: Assistant Professor Designation: Professor & Head

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.

PEO-3: To impart critical thinking, creativity & Innovation, collaboration, communication,


information literacy, flexibility & adaptability, leadership and responsibility, and social and
cross-cultural interaction skills, and an ability to adapt to evolving professional environments
PROGRAM-SPECIFICOUTCOMES(PSO’S)
PSO1:Tocollect data,validatethedata,design and develop softwaremodels, convertthemodel into a
working solution using appropriate algorithms and programming language.

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)

DEPARTMENTOF COMPUTER SCIENCE & ENGINEERING

StudentList

Sl.No USN Name SCHEME


1 1SP23AI061 VENUNANDAN H D 2022SCHEME
ATHARVA RAJESH
2
1SP23CS011 MADGAONKAR 2022SCHEME
3 1SP23CS020 DHANUSH A 2022SCHEME
4 1SP23CS024 G NIHAL 2022SCHEME
5 1SP23CS026 GUMMA MYTHRI 2022SCHEME
6 1SP23CS028 HARSHITH G 2022SCHEME
7 1SP23CS041 KUMBA VENKATA ROHITH 2022SCHEME
8 1SP23CS042 KUMMARI VENKATA KUMAR 2022SCHEME
9 1SP23CS043 LAVANYA G 2022SCHEME
10 1SP23CS046 MAHESH A 2022SCHEME
11 1SP23CS059 MUHAMMED HADI K V 2022SCHEME
12 1SP23CS062 NEHASHREE S 2022SCHEME
13 1SP23CS065 PALLAVI T 2022SCHEME
14 1SP23CS070 PRAJWAL S 2022SCHEME
15 1SP23CS071 PRAMODH GOWDA S M 2022SCHEME
16 1SP23CS072 PREEYA VEERANNA SUSANGI 2022SCHEME
17 1SP23CS075 RAMESH 2022SCHEME
18 1SP23CS076 RANJEETH KUMAR J 2022SCHEME
19 1SP23CS077 REETHU P 2022SCHEME
20 1SP23CS078 ROHITH KRISHNAN 2022SCHEME
21 1SP23CS080 RUCHITHA C 2022SCHEME
22 1SP23CS081 RUCHITHA K V 2022SCHEME
23 1SP23CS082 S R RAHUL NAIK 2022SCHEME
24 1SP23CS083 SADDALA ANUSHA 2022SCHEME
25 1SP23CS084 SAHANA N N 2022SCHEME
SAMARTH SANGANAGOUDA
26
1SP23CS085 PATIL 2022SCHEME
27 1SP23CS086 SANDEEP 2022SCHEME

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)

DEPARTMENTOF COMPUTER SCIENCE & ENGINEERING

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

1) Explain the following methods with suitable examples


i) Upper(), ii) lower(), iii) is_upper() iv) is_lower()
2) Illustrate with examples opening of afile with open() function, reading the contents of file with read() function
and writing to files with write() function
3) Explain the steps involved in adding bullets to wiki-markup. Support with appropriate code.
4) Write a python program to count number of lines in a file
5) Explain the following functions with examples
a) Makedirs(), getcwd(), velpath(),listdir(),sub()
6) What are the three “mode” arguments that can be passed to open() function with example

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

1) Compare the differences between static, class and instance method.


2) Define classes and objects in python. create a class called Employee. and initialize with employee name and
id.design method to
i) Set age -to assign age to the employee
ii) Set salary- to assign salary to the employee
iii) Display to display all information to the employee
3) Explain –init—and –str—methods with examples.
4) Write a program to implement polymorphism in python using method over riding
5) Define pure function ? give example program that returns square of the passed integer.
6) How class can be instantiated in Python. Write a python program to instances as return values to define a class
rectangle with member width, height,corner X,corner Y and member function to find center area and perimeter
of a rectangle.

20
Course Objectives: This course(BPLCK205B) will enable students to:

● 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.

21
®
SOUTHEASTASIANEDUCATIONTRUST

S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)

DEPARTMENTOF COMPUTER SCIENCE & ENGINEERING


Result Analysis

Sub Name: Introduction to Python Programming


Sub Code: BPLCK205B

Total No of Students Appeared


No. of Student’s Pass
No. ofStudent’s Fail
No. of Student’s Absent
Result in percentage

22
®
SOUTHEASTASIANEDUCATIONTRUST

S.E.A.COLLEGEOFENGINEERING&TECHNOLOGY
Approvedby AllIndia CouncilforTechnicalEducation(AICTE),NewDelhi,
AffiliatedtoVisvesvarayaTechnologicalUniversity(VTU),Belagavi,RecognizedbyGovernmentof Karnataka
AccreditedwithGradeB++byNationalAssessment andAccreditationCouncil(NAAC)

DEPARTMENTOF COMPUTER SCIENCE & ENGINEERING

Subject INTRODUCTION TO External


: PYTHON PROGRAMMING
Code BPLCK205B MAXMARKS 60
Attainment
AttemptedCount
StudentScoredMorethan50%
SN USN Name Marks
1 1SP23AI061 VENUNANDAN H D
ATHARVA RAJESH
2
1SP23CS011 MADGAONKAR
3 1SP23CS020 DHANUSH A
4 1SP23CS024 G NIHAL
5 1SP23CS026 GUMMA MYTHRI
6 1SP23CS028 HARSHITH G
7 1SP23CS041 KUMBA VENKATA ROHITH
KUMMARI VENKATA
8
1SP23CS042 KUMAR
9 1SP23CS043 LAVANYA G
10 1SP23CS046 MAHESH A
11 1SP23CS059 MUHAMMED HADI K V
12 1SP23CS062 NEHASHREE S
13 1SP23CS065 PALLAVI T
14 1SP23CS070 PRAJWAL S
15 1SP23CS071 PRAMODH GOWDA S M
PREEYA VEERANNA
16
1SP23CS072 SUSANGI
17 1SP23CS075 RAMESH
18 1SP23CS076 RANJEETH KUMAR J
19 1SP23CS077 REETHU P
20 1SP23CS078 ROHITH KRISHNAN
21 1SP23CS080 RUCHITHA C
22 1SP23CS081 RUCHITHA K V
23 1SP23CS082 S R RAHUL NAIK
24 1SP23CS083 SADDALA ANUSHA

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:

IA-1(28-04-2024 to 02-05-2024) IA-2 (18-06-2024 to 20-06-2024)


Number Of Classes Portions Number Of Classes Portions
Conducted Conducted
Covered In % Covered In
%
27 80 30 100

FacultyFeedback:

Subject Code BPLCK205B


Faculty Name RAJASEKARAN K

Teacher Rating in Percentage

Comments From Faculty

Comments From HOD

25

You might also like