Python Programming For Developers
Outline

Python Programming for Developers

A 4 day introduction to Python Programming for software developers that covers basic language constructs, file I/O, OO programming, command line processing, managing processes and web clients. The focus is on using best practices and techniques to develop professional quality programs and scripts. Optionally this course can be customized by adding modules on data processing, machine learning, and Web application development.

Objectives

  • Understand Python syntax, flow control, data structures and objects
  • Read and write files
  • Develop scripts for use in a Linux or Windows environment
  • Understand best practices for error handling, recovery and logging
  • Manipulate data using simple and complex regular expressions
  • Design and develop user defined classes for handling structured data
  • Read data from a web server

Prerequisites

  • This course is designed for programmers who know at least one programming or scripting language: no prior knowledge of Python or OO programming is assumed.

Contents

Python Introduction

  • How Python Works
  • What Python is used for
  • Python syntax
  • Python IDEs
  • Python variables
  • Python data types

Looping and Branching

  • IF statements and indentation
  • WHILE loop
  • FOR loop
  • BREAK and CONTINUE statements

Functions

  • Functions
  • Arguments and return values
  • Importing modules

Sequences

  • List and Tuples
  • FOR loop
  • Sets
  • Dictionaries
  • List comprehension

Exceptions

  • Handling exceptions with TRY-EXCEPT statements
  • Raising exceptions
  • Exception safe code and the WITH statement

File Handling

  • Reading and writing files
  • Working with the file system

Working with modules

  • Organising modules
  • Using PYTHONPATH
  • Building Libraries

Command line processing

  • Command line processing
  • Command line options
  • Exit codes and exit functions

Managing processes

  • Using subprocess to run commands
  • Reading sub command's STDOUT and STDERR
  • Writing to a sub command's STDIN

Advanced Functions

  • Variable arguments lists and named argument lists
  • Function pointers
  • Lambdas and generators

Classes and Data Structures

  • Classes and objects
  • Constructors
  • Object methods and special methods

Designing Classes

  • Supporting subscripts and slices
  • Building an iterator class
  • Working with the resource manager

Text Handling with Regular Expressions

  • Basic pattern matching
  • Pattern repetitions
  • Capture groups

File processing

  • Working with CSV files
  • Working with fixed field files

Web Clients

  • Reading data from a web page URL
  • Parsing XML using ElementTree

Calling C Code

  • Calling C functions
  • Passing data between C and Python

Do You Have a Question?

);

Accreditations:

Our team are AWS Professional Certified Solutions  ArchitectsOur team are AWS Devops Specialty CertifiedAltova Training PartnerAltova Consulting PartnerOur team members are Professional Scrum master certified
Website Design by tinyBox Creative