Course Description:
This course teaches students how to develop Python applications. Topics covered include the Python programming language syntax, OO programming using Python, exception handling, file input/output, Database connectivity.
Who Should Attend:
This course is designed for application programmers and designers planning to develop applications using the Python.
Benefits of Attendance:
Upon completion of this course, students will be able to:
Run a Python application.
Navigate through the API docs.
Use the Object Oriented paradigm in Python
Understand the division of classes into Python packages.
Use Exceptions to handle run time errors.
Prerequisites:
Knowledge of programing languages such as C or C++ is desirable but not mandatory.
Course Outline:
Introduction
1. Understanding Open source Model
2. Installing Python in Linux/Windows
3. Understanding interpreters
a. ipython
b. bpython
4. Getting started with Python
5. Setting up IDE and various IDEs
6. Creating first Python Program
a.Understanding sha-bang
b.understanding .py extension
7. How to run Python programs
Types and Operators
1. Introduction to datatypes
2. Type Casting in Python
3. Various ways of printing
4. Boolean Operators
5. Playing with numbers
6. Playing with Strings
a. String Quotes
b. Raw Strings
7. Docstring and Comments
8. Accepting Inputs
Control Statements
1. Conditional Statements
a. Boolean expressions
b. Logical Operators
c. Using If condition
d. Pass
2. Looping Statements
a. for
b. while
c. range
d. break
e. continue
Lists
Tuples
Dictionaries
Functions
1. Function basics
a.Global Scope
b. Local Scope
c. Locals
d. globals
e. global
3. Understanding the return key word.
4. Argument Passing
a. Default Argument List
b. Keyword Arguments
5. Understanding the docstrings
6. List Comprehensions
7. Lambda, map, filters
Modules
Files
1.Fancier Output Formatting
2. Reading and writing files
3. Methods of File Objects
a. Reading
b. Writing
c. Modify
5. Pickles
6. Output using Pickle
Exceptions
Classes
1. OOP: What is Object Oriented Program
2. Understanding Classes in Python
a. Constructor
b. Magic Method
4. Understanding Inheritance
5. Understanding Polymorphism
6. Understanding Encapsulation
7. Operator Overloading
Regular Expressions
Decorators
Generators
Iterators