Chapter / Topic Details: Sr. No. No. of Hours Introduction To Python
Chapter / Topic Details: Sr. No. No. of Hours Introduction To Python
of
No. hours
1 Introduction to Python 3
Introduction to Python- an interpreted high level
language, interactive mode and script mode. Variables, Expressions and
Statements
Variables and Types-mutable and Immutable variable and Keywords.
Operators and Operands in Python. (Arithmetic, relational and logical
Operators),
Operator precedence, Expressions and Statements (Assignment
Statement);
Taking input (using raw_input() and input()) and displaying output –
print statement
Comments in Python
2 Conditional and Looping Construct 2
if - else statement and nested if – else while, for, use of function in for,
Nested loops
break, continue, pass statement
Use of compound expression in conditional constructs
3 Functions 5
Built-In Function, invoking built in functions
Module (Importing entire module or selected objects using from
statement)
Functions from math, random, time & date module.
Composition
User Define Function: Defining, invoking functions, passing parameters
(default parameter values, keyword arguments)
Scope of variables, void functions and functions returning values
4 Strings 4
Creating, initializing and accessing the elements;
String operators: +, *, in, not in, range, slice [n:m]
String built in functions & methods:
Strings constants defined in string module Regular Expression and
Pattern Matching
5 Lists 8
Concept of mutable lists, creating, initializing and accessing the elements
of list
List operations (Concatenation, Repetation, Membership, list slices), List
comprehensions
List functions & methods: len, insert, append, extend, sort, remove,
reverse, pop Tuples
Immutable concept, creating, initializing and accessing the elements in a
tuple;
Tuple functions: cmp(), len(), max(), min(), tuple() Sets
Concept of Sets , creating, initializing and accessing the elements of
Sets operation(Membership, union, intersection, difference, and
symmetric difference Dictionaries
Concept of key-value pair, creating, initializing and accessing the
elements in a dictionary,
Traversing, appending, updating and deleting elements
Dictionary functions & Methods: cmp, len, clear(), get(), has_key(),
items(), keys(), update(), values()
6 Modules 2
More on Modules: Executing modules as scripts, The Module Search
Path, “Compiled” Python files Standard Modules
The dir( ) Function
Packages Importing * From a Package, Intra-package References,
Packages in Multiple Directories
7 File Handling 2
Output Formatting
Reading and Writing Files (text and binary mode)
8 Errors and Exceptions 2
Syntax Errors, Exceptions, Handling Exceptions, Raising Exceptions
User-defined Exceptions, Defining Clean-up Actions (try - finally),
Predefined Clean-up Actions
9 Introduction to Object oriented concepts in Python 5
Object Oriented concepts
Objects, Python Scopes and Namespaces
Classes, Class Objects, Instance Objects, Method Objects, Class and
Instance Variables
Inheritance
10 Database handling using Python 2