Python Programming


DEC409 : Python Programming


    Course Code  :   DEC409

    Duration         :   30 Hrs


Basics of Python

Functions, Classes & Modules

Session 1:

  • Introduction
  • Use case of python.
  • Comparison with other programming language.
  • Python interpreter and console.

Session 2:

  • Basic data structure.
    1. int, float, str
    2. possible operations on above data types.
  • Variables.
  • Dynamic typing.

Session 3:

  • Basic programming constructs.
  • Conditions like if,else,elif
  • Loops like while, break,for,continue.
  • Interactive mode
    1. file mode
    2. dir mode
    3. type
    4. help
  • Advanced data structure
    1. List
    2. tuple
    3. dictionary
    4. frozenset
    5. set

Session 4:

  • range and xrange
  • dictionary
  • python std library(basic introduction)
    1. os
    2. sys
  • exercise

Session 1:

  • functions(advanced)
    1. Syntax or prototype of function
    2. Invocation or how to call a function
    3. Parameter passing
    4. Parameter passing with names.
    5. Idea of passing reference.
    6. Recursion.
    7. Nesting of functions.

Session 2:

  • Object oriented concepts.
  • Python objects.
  • Classes.
  • creation of objects.
  • Inheritance.
  • Class attributes.
  • Operator overloading.

Session 3:

  • Modules
    1. .py files & .pyc files
  • Basic exception handling
    1. significance
    2. Common exceptions.
    3. Usage : try,except,raise,else,finally.

Session 4:

  • File handling
    1. open,read, write and delete files.
  • Exercise







Note:

** These sections may be considered in part or in whole as optional. They contain background reference material, specialized topics, or advanced subjects. The instructor may choose to cover or not cover them depending on classroom experience and time constraints.