Python Training

Python Training explains how to use Python to create applications. After completing this training course you would be able to use Python on your projects. Python is a general-purpose programming language and widely used in following areas:

  • Web Programming: Django, Pyramid, Bottle, Tornado, Flask. web2py
  • GUI Development: wxPython, tkInter, PyGtk, PyQt
  • Scientific and Numeric: SciPy, Pandas, IPython
  • Software Development: Buildbot, Trac, Roundup
  • System Administration: Ansible, Salt, OpenStack

Few practical Python based projects at the end of the course will ensure that you can apply Python on your projects.

PYTHON 3: THE BASICS

  • A brief introduction to Python
  • How does python script work?
  • Structure of Python scripts
  • Python is Interpreted
  • Python vs other programming languages
  • How Python is better?
  • How to run Python interactively
  • The community
  • Where to find python help
  • Python documentation

PYTHON SET-UP

  • Getting python and installation
  • IDE for Python

PYTHON 3 FEATURES

  • Standard library
  • Interactive Mode
  • Portable
  • Extendable
  • Databases
  • GUI Programming
  • Scalability
  • Structured programming and OOP
  • Python integration with other programming languages

COMMON ELEMENTS OF PYTHON PROGRAMMING

  • How to use variables
  • Variable naming scheme
  • Data types
  • Python methods
  • Operators
  • Boolean and logical operators
  • Augmented assignments
  • Switching types
  • Dictionaries
  • Types in Python
  • Where are Arrays in Python?
  • Tuples
  • Lists in Python
  • OOP in Python

CONDITIONAL STATEMENTS IN PYTHON

  • If Else structure
  • Conditional expressions
  • Unconditional flow control
  • Indentation
  • Chained comparisons
  • Sequence
  • Collection
  • Object types

LOOPS

  • While loops
  • For loops
  • For loop incremental
  • Enumerate

PYTHON 3 STRING MANAGEMENT

  • How to handle strings in python
  • Print function
  • String concatenation
  • String methods
  • Double quote in String
  • String formatting and testing
  • String formatting aids
  • Slicing a string
  • String specific methods
  • How to split and join strings

PYTHON FUNCTIONS

  • Different type of python functions
  • Function parameters
  • Function default values
  • Variadic functions
  • Named parameters
  • Enforcing named parameters
  • Variables in functions
  • Nested functions
  • Function return object
  • Variables in nested functions
  • Lamdba functions
  • Lambda as a sort key
  • Lambda in re.sub

COLLECTIONS

  • What is Python collection?
  • Different types of collections in Python
  • Lists
  • Using list as stacks
  • Using list as queues
  • Using list comprehensions
  • Tuple and list slicing
  • Extended iterable unpacking
  • Adding items to a list
  • Removing items by position
  • Removing list items by content
  • Sorting
  • List methods
  • Types
  • Useful tuple operations
  • Sets
  • Set operators
  • Python dictionaries
  • Dictionary values
  • Removing items from a dictionary
  • Dictionary methods
  • View objects

ADVANCED COLLECTIONS

  • Advanced list functions
  • List comprehensions
  • Set and dictionary comprehensions

REGULAR EXPRESSIONS

  • Regular expressions in Python
  • Regular expression objects
  • Regular expression substitution
  • Regular expression split
  • Special Syntax with Parentheses
  • Grouping with Parentheses
  • Repetition Cases
  • Literal characters
  • Character classes
  • Regular Expression Patterns
  • Modifiers
  • Matching alternatives
  • Anchors
  • Class shortcuts
  • Flags
  • Repeat quantifiers
  • Quantifiers
  • Parentheses groups
  • Back-references
  • Global matches

FILE HANDLING

  • Reading and Writing Files
  • Methods of File Objects
  • Using source file
  • New file objects
  • Reading data from an existing file
  • Reading options
  • Filter programs – fileinput module
  • Binary mode
  • Writing to files from Python
  • Standard streams
  • More tricks
  • Random access

DATABASE WITH PYTHON

  • Database interface overview
  • Example – Ms SQL from Python
  • How to manipulate database in Python

MODULES AND PACKAGES

  • Python modules and packages
  • Creating the Required Setup Files
  • Creating the Distribution File
  • Executing modules as scripts
  • The Module Search Path
  • Compiled Python files
  • Multiple source files
  • Importing a module
  • Importing names
  • Writing a module
  • Module documentation
  • Testing a module
  • Directories as packages
  • Python debugger
  • Python profiler
  • Distributing libraries using distutils
  • Importing * From a Package
  • Intra-package References
  • Packages in Multiple Directories

CLASSES AND OOP

  • Introduction to Object-Oriented Programming in Python
  • Names and Objects
  • Scopes
  • Classes and OOP
  • Using objects
  • Class definition syntax
  • Methods within class
  • Instance objects
  • Instance variable
  • Class methods
  • Inheritance
  • Abstraction
  • Threads in Python
  • Iterators
  • Generators

ERROR HANDLING AND EXCEPTIONS

Syntax Errors

Stderr

Warnings

How does exception work

Exception handling

Multiple exceptions

Raising exception

Exception arguments

Finally block

Order of execution

The Python exception hierarchy

Raise

Assert

User defined exception

Defining clean-up actions

Muhammad Fahid