Python

Course Outline

An Introduction to Python

Beginning Python Basics

  • The print statement
  • Comments
  • Python Data Structures & Data Types
  • String Operations in Python
  • Simple Input & Output
  • Simple Output Formatting

Python Program Flow

  • Indentation
  • The If statement and its' related statement
  • An example with if and it's related statement
  • The while loop
  • The for loop
  • The range statement
  • Break & Continue
  • Assert
  • Examples for looping

Functions & Modules

  • Create your own functions
  • Functions Parameters
  • Variable Arguments
  • Scope of a Function
  • Function Documentation/Docstrings
  • Lambda Functions & map
  • An Exercise with functions
  • Create a Module
  • Standard Modules

Exceptions

  • Errors
  • Exception Handling with try
  • Handling Multiple Exceptions
  • Writing your own Exceptions

File Handling

  • File Handling Modes
  • Reading Files
  • Writing & Appending to Files
  • Handling File Exceptions
  • The with statement

Classes In Python

  • New Style Classes
  • Creating Classes
  • Instance Methods
  • Inheritance
  • Polymorphism
  • Exception Classes & Custom Exceptions

Regular Expressions

  • Simple Character Matches
  • Special Characters
  • Character Classes
  • Quantifiers
  • The Dot Character
  • Greedy Matches
  • Grouping
  • Matching at Beginning or End
  • Match Objects
  • Substituting
  • Splitting a String
  • Compiling Regular Expressions
  • Flags

Data Structures

  • List Comprehensions
  • Nested List Comprehensions
  • Dictionary Comprehensions
  • Functions
  • Default Parameters
  • Variable Arguments
  • Specialized Sorts
  • Iterators
  • Generators
  • The Functions any and all
  • The with Statement
  • Data Compression

Writing GUIs in Python

  • Introduction
  • Components and Events
  • An Example GUI
  • The root Component
  • Adding a Button
  • Entry Widgets
  • Text Widgets
  • Checkbuttons
  • Radiobuttons
  • Listboxes
  • Frames
  • Menus
  • Binding Events to Widgets

Network Programming

  • Introduction
  • A Daytime Server
  • Clients and Servers
  • The Client Program
  • The Server Program
  • Recap
  • An Evaluation Client and Server
  • The Server Portion
  • A Threaded Server

Python MySQL Database Access

  • Introduction
  • Installation
  • DB Connection
  • Creating DB Table
  • INSERT, READ,UPDATE, DELETE operations
  • COMMIT & ROLLBACK operation
  • Handling Errors