Python Programming

Target Audience

Prerequisites

Objectives

Course Format

Language

Syllabus

  1. Introduction to Python
    • Installing Python
    • Where and why to use Python
    • Using the Python interactive interpreter
    • Documentation and how to get help?
    • Indentation
  2. Scalar types and operators
    • Strings
    • Numbers
    • Split
    • String slices
    • Immputable strings
  3. Collection types and operators
    • Lists
    • List slices
    • Tuples
    • Dictionaries (hashes)
    • Sets
    • Sorting
    • Queues
    • Stack
    • Collections
    • Iterables
    • Mutable and immutable
  4. Functions subroutines
    • Function parameters
    • Positional parameters
    • Named parameters
    • Default values
    • Optional parameters
    • Return values
    • Function documentation
    • Lambda functions
  5. Control flow
    • For loops
    • While loops
    • Loop controls
    • Conditionals
    • Chained comparison
    • Enumerate
    • Boolean and logical operators
  6. IO
    • print
    • print formatting
    • read/write files
  7. Regular expression (pattern matching)
    • Matching all
    • Searching for a single match
    • Meta characters
    • Character classes
    • Special character classes
    • Quantifiers
    • Alternatives
    • Modifier flags
    • Anchors
    • Back-references
    • Substitution
    • Split
  8. The Python standard library
    • Filesystem related functions
    • Running external processes
  9. Creating modules
    • Loading a module
    • Finding a module in a private directory
    • Changing the search path to a relative directory
    • Importing selected functions
    • Namespaces
    • Creating executable module
  10. Exception handling
    • Creating non-fatal warnings
    • Catching exceptions
    • Handling exceptions
    • Throwing a new exception
    • The final block
    • Creating your own exception
  11. Object Oriented Programming
    • Defining classes
    • Initializing objects
    • Methods
    • Attributes or members
    • The self
    • Inheritance
  12. Additional uses
    • Installing and using 3rd party modules
    • Writing simple web scraping program
    • Writing simple Web application
    • Accessing SQL databases
    • Reading and writing Excel files

Contact

Contact: Gabor Szabo gabor@hostlocal.com
Phone: +972-54-4624648