PYTHON PROGRAMMING R20 Syllabus

You might also like

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

PYTHON PROGRAMMING

(Common to ECE, EEE, CE, CSE, IT, ME and AI & DS)

Subject Code: L T P C
I Year / II Semester 3 0 0 3

Course Objectives:
Python is a modern language useful for writing compact codes to solve problems. The
course is intended to provide the foundations of Python Programming. The students
should be able to create python programs that leverage the object oriented features.

Syllabus:
UNIT I: (8 Hrs)
Basics of Python Programming: Features of Python, Comparison with C, Python
Virtual Machine, comments, indentation, literals, variables and identifiers, data types,
operators, Input and Output Statements,type conversion, command Line Arguments.

Decision Control Statements: selection/conditional branching statements, basic loop


structures, nested loops, break, continue and pass statements, else statement used
with loops.

UNIT II: (9 Hrs)


Functions: Declaration and definition, calling a function, returning values from
function, pass by object reference, Formal and actual arguments, Local and Global
variables, recursive functions, lambda functions.

Data Structures: Strings and its operations,


Lists: accessing and updating values in list, basic list operations and list methods,
nested and cloning lists, list comprehensions, looping in lists.
Tuples, Sets , Dictionaries and their Operations.

UNIT III: (9 Hrs)


Classes and Objects: Introduction to Object Oriented programming , classes and
objects, Class method and self argument, __init__() method, class variables and object
variables, __del__() method, other special method, public and private data members,
built-in class functions and attributes, garbage collection, class and static methods.

UNIT IV: (8 Hrs)


Inheritance: Introduction, inheriting classes, types of inheritance,overriding
methods,abstract classes and interfaces.

Modules: What are Modules, Modules and Files, Namespaces, Importing Modules,
Module Built-in Functions, Packages.
UNIT V: (8 Hrs)
Error and Exception Handing: Types of Errors, Exceptions, Handling Exceptions,
types of exceptions, except block, assert statement, user defined exceptions.

UNIT VI: (8 Hrs)


Numpy Arrays: Creation, Processing Arrays, Types of Arrays, Arrays using numpy,
Operations on Arrays, attributes of arrays, multi-dimensional arrays, matrices in numpy,

Course Outcomes:
Upon completion of the course, the students will be able to:
CO 1 Understand the Python syntax, semantics, basic programming constructs to be
used to write the programs.[L2]
CO 2 Utilize the methods of various data structures to manipulate the data. [L3]
CO 3 Apply the appropriate Object-Oriented Programming principle for a given
scenario.[L3]
CO 4 Develop bug free applications by handling different types of exceptions. [L4]

Mapping of COs to POs:


PO
POs PO1 PO2 PO3 PO4 PO6 PO7 PO8 PO9 PO10 PO11 PO12
5
CO
- - - - - - - - - - - -
1
CO -
- 3 - - - - - - - - -
2
CO -
- - 3 - - - - - - - -
3
CO -
- - - 3 - - - - - - -
4

TEXT BOOKS:
1. Reema thareja, Python Programming using problem solving approach, Oxford
University Press.

REFERENCE BOOKS:
1. Dietel and Dietel, Python How to Program.
2. Kenneth A. lambert, B.L. Juneja, Fundamentals of Python, Cengage Learning
3. Dr. R. Nageswara Rao, Core Python Programming , Dreamtech Press

You might also like