Introduction to Programming with Python

Purpose

Learn the basics of the Python programming language

Objectives

  • Learn to install and configure Python
  • Create basic Python scripts
  • Perform text processing in Python
  • Create a modular Python application

Audience

Software developers, QA, DevOps engineers, and system adminstrators interested in adopting Python

Prerequisites

Students should be familiar with text editors and running commands from the command-line.

Experience in some other programming language is helpful but not required.

Course Outline

  • Programming in Python overview
    • Introduction/review of programming concepts
    • Types and typing
    • Python and other programming languages
    • Python variables
  • Getting Python up and running
    • Installing Python
    • Installing Jupyter notebook
  • Python basics
    • Literals & operators
    • Control structures: if, for, while
    • Creating functions in Python
    • Using modules in Python
    • Working with files
  • Python collections
    • String processing in Python
    • Tuples, lists, sets, dicts
    • List, set, and dict comprehensions
  • Python exceptions
    • Common exceptions
    • Handling exceptions: try, except, finally
  • Developer modules
    • Command-line processing: argparse
    • Automating external tools: os, sys, subprocess, shutil
    • File and IO management: tempfile, glob, fnmatch
  • Python modules and packages
    • Using modules: how the import statement works
    • Packages
    • Creating modular applications
  • String and text processing
    • Advanced string processing
    • String formatting using format, interpolation, f-strings, and string templates
    • StringIO
    • Regular expression overview
  • Introduction to Object-oriented programming in Python
    • Creating classes
    • Using methods
    • "Magic" methods and protocols
    • Information hiding and conventions
    • Basic inheritance

Please contact us for information on pricing and availability