hange E hange E
XC di XC di
F- t F- t
PD
PD
or
or
!
!
W
W
O
O
N
N
Y
Y
U
U
B
B
to
to
k
k
lic
lic
ww
ww
om
om
C
C
w c w c
.p
d f- x e. .p
d f- x e.
chang chang
2 Visual C#.Net C Muthu Mc Graw Hill
Name of Course [Link]. (Computer Science) Third Year
Semester V Semester
Name of Subject Python
Subject code BCS-502
Course objective:
1. To understand why Python is a useful scripting language for developers.
2. To define the structure and components of a Python program.
3. To understand programming constructs in Python.
4. To acquire Object Oriented Skills in Python
5. To develop the ability to write database applications in Python
Course Outcome:
After successful completion of this course, learner will be able to-
1. Write programs using Python programming constructs.
2. Design and Develop applications using Python programming.
3. Design object oriented programs with Python classes.
4. Use exception handling in Python applications for error handling.
5. Design and Develop applications connecting with database.
UNIT-I
Sr. Introduction Lectures
No. Required
1 Getting Started - Introducing python, 1
2 Features of python 1
3 Python Interpreter , Installing python on windows 2
4 Meeting the interpreter, Writing your first program. 2
UNIT-II
Sr. Data types, variables, expressions, statements Lectures
No. and Control Structures Required
hange E hange E
XC di XC di
F- t F- t
PD
PD
or
or
!
!
W
W
O
O
N
N
Y
Y
U
U
B
B
to
to
k
k
lic
lic
ww
ww
om
om
C
C
w c w c
.p
d f- x e. .p
d f- x e.
chang chang
1 Employing variables, Obtaining user input, Correcting 2
Errors.
2 Performing operations-Doing arithmetic, 1
3 Assignment statements Assigning values, Comparing 2
Values, Assessing logic.
4 Examining Conditions, Setting precedence, casting 2
data types.
5 Branching with if, Looping while true, Looping 2
over items, Breaking out of loops.
6 Working with List, Tuple, Set, Dictionary. 2
UNIT-III
Sr. Strings and string operations, Modularization and Lectures
No. Classes Required
1 Manipulating strings, Formatting strings, Modifying 2
stringsOperators (unary, arithmetic, etc.)
2 Accessing files, Reading and writing files, Updating file 2
strings
3 Pickling data, Reading data from CSV/EXCEL file in 1
python
4 Standard modules , Packages, Defining Classes 1
5 Defining functions ,Functions and arguments (signature) 1
6 Mathematical functions and constants (import 1
math)
UNIT-IV
Sr. Exceptions and data structures Lectures
No. Required
1 Data Structures (array, List, Dictionary) 1
hange E hange E
XC di XC di
F- t F- t
PD
PD
or
or
!
!
W
W
O
O
N
N
Y
Y
U
U
B
B
to
to
k
k
lic
lic
ww
ww
om
om
C
C
w c w c
.p
d f- x e. .p
d f- x e.
chang chang
2 Exception Raising ,Exception Handling ,Error processing. 2
3 Making statements - Writing lists, Manipulating 2
lists, Restricting lists, associating list elements,
UNIT-V
Sr. Object Oriented Design Lectures
No. Required
1 Programming types , Object Oriented Programming, 1
2 Inheritance and types of inheritance, 2
3 Polymorphism. 2
UNIT-VI
Sr. Database Connectivity and Web Lectures
No. Required
1 Getting MySQL for python 1
2 Connecting with database 1
3 Passing Query to MySQL 1
4 Design and Implement any Database Application using 1
Python
5 Introduction to web using flask. 1
Reference Books:
1. Learning Python Mark Lutz O’Reilly 5th edition
2. Starting Out with Python plus MyProgramming Lab Tony Gaddis Pearson
eText --Access Card Package 3rd edition
3. MySQL for Python Albert Lukaszcwskc Packt publication 1st edition