Course 589:
Python Programming Essentials

(4 days)

 

Course Description

Python is a powerful, portable, object-oriented, open source programming language. This course starts by quickly covering the basic: variables, control of flow, functions, modules, packages, and standard libraries. OO programming in Python is covered using a test first methodology. The course then takes an in-depth look at data structures and exception handling. This class is approximately 65% hands-on.

Note: This course uses Python 2.7.

Learning Objectives

In this course, you will learn how to:

  • Create a Python program
  • Use and manipulate variables
  • Use lists and tuples
  • Use advance data structure
  • Use regular expressions effectively
  • Use and create objects and classes
  • Handle exceptions
  • Do unit testing
  • Access a database
  • Use iterators and generators
  • Use Matplotlib

Who Should Attend

Anyone who wants to learn how to program in Python.

Prerequisites

Prior programming experience is not required for this course.


Course Outline

Quick Start

  • Command Line
  • IDEs
  • A First Program—Twice
  • Getting Help: Debugging

Variable Fundamentals

  • Data Types and Assignment
  • Strings
  • Coercion and Conversion
  • Basic I/O

Program Flow Control

  • Truth in Python
  • if in All Forms
  • while
  • break and continue
  • Shorthand Operators

Lists, Tuples, and Dictionaries

  • What Is a List?
  • What Is a Tuple?
  • List Operators
  • Tuple Operators
  • for Looping
  • Lists of Lists
  • Understanding and Using Dictionaries

Functions

  • Function Basics
  • Function Attributes
  • Methods of Calling Functions
  • Variable Scope

Modules and Packages

  • Creating and Using Modules
  • Using Packages

Exception Handling

  • What Are Exceptions?
  • Creating Exception Handlers
  • Raising Exceptions

File Handling

  • Formatted IO
  • File IO
  • String IO

Iterators and Generators

  • Review of Iterators
  • Lambda Functions
  • Use Cases for Generators
  • Introduction to Generators

Python Object Fundamentals

  • Python and Objects
  • Using Objects and Methods
  • Creating Classes
  • Attributes and Properties
  • Inheritance
  • Overloading of Operators

Special Topics

  • OS Interface Introduction
  • Wild Cards
  • Command Line
  • String Pattern Matching (RE)
  • Running External Programs

Unit Tests (PyUnit)

  • Why and Why Not Unit Tests
  • Mattern for Unit Testing
  • Mock Object Introduction

Database Programming

  • Introduction to Database Programming
  • Processing Select Statements
  • Executing Input and Update Statements

Performance Introduction

  • Why and Why Not
  • Simple Things to Do

Plotting

  • Introduction to MatPlotLib

Please Contact Your ROI Representative to Discuss Course Tailoring!