Python Programming 1 and 2

5 Day Course
Hands On
Code PYP12

This course has been retired. Please view currently available Python courses.

Modules

Hide all

Introduction to Python (4 topics)

  • What is PYTHON and why PYTHON is useful
  • Installing Python
  • The IDLE editor
  • A simple PYTHON Program

Python Basics (10 topics)

  • How to run PYTHON programs on UNIX and Windows platform
  • Lines and Indentation
  • Multiple line Statements
  • Quotation Marks
  • Reserved Words in Python
  • Python Suites
  • Input
  • Output
  • Working with Files
  • Labs

Python Variables (8 topics)

  • Assignments
  • Data Types
  • Numbers
  • Strings
  • Lists
  • Tuples
  • Dictionaries
  • Labs

Python Operators (9 topics)

  • Arithmetic Operators
  • Comparison Operators
  • Assignment Operators
  • Bitwise Operators
  • Logical Operators
  • Membership Operators
  • Identity Operators
  • Operator Precedence
  • Labs

Conditional and Control Statements (4 topics)

  • if elif else constructs
  • while and for Loops
  • Iteration
  • Labs

Functions (6 topics)

  • Creating Functions
  • Def Statement
  • Calling functions
  • Scoping variables
  • Passing arguments
  • Labs

Modules (6 topics)

  • What is a module
  • Standard modules
  • How to define and code a module
  • Using import
  • Argument passing and return values from a module
  • Labs

Pattern Matching (10 topics)

  • The re module
  • How pattern matching works
  • Pattern matching operators
  • Pattern matching special characters
  • Labs Part 1
  • Pattern matching options
  • Pattern substitution
  • Pattern tagging
  • Translation
  • Labs Part 2

Python OO (6 topics)

  • Why use OO
  • Creating a simple class
  • Inheritance
  • Passing data into a class
  • More complex classes
  • Labs

Exceptions (6 topics)

  • What are exceptions
  • Default Handler
  • catch/try/raise Statements
  • Class Based Exceptions
  • What Not To Do
  • Labs

Working with Email (4 topics)

  • Simple emails
  • HTML Emails
  • Working with Attachments
  • Labs

Working with Databases (3 topics)

  • Python and Databases
  • Connecting to MySQL Database
  • Working with tables /Records

Advanced Object Orientation (9 topics)

  • The self Keyword
  • Constructors and Destructors
  • Encapsulation
  • Inheritance
  • Polymorphism
  • Abstract Classes
  • Multiple Inheritance and Mixins
  • Composition and Aggregation
  • Static Members

Iterators & Generators (5 topics)

  • Iterables
  • Iterators
  • Custom Iterators
  • Generators
  • Yield vs. Return

Comprehensions (4 topics)

  • List Comprehension
  • Set Comprehension
  • The zip Function
  • Dictionary Comprehension

Decorators (5 topics)

  • Decorators
  • Decorator Functions
  • Decorator Annotations
  • Decorator Use Cases
  • Labs

Multithreading (9 topics)

  • Threads
  • Multithreading
  • Thread Construction
  • Thread Execution
  • Thread Sleep
  • Joins
  • Data Sharing
  • Synchronisation
  • Multithreading vs. Multiprocessing

Functional Programming (6 topics)

  • Functional Programming
  • Lambdas
  • Immutability
  • Mapping
  • Filtering
  • Reducing

Web Services (5 topics)

  • RESTful Web Services
  • JSON Data
  • CRUD and HTTP
  • RESTful Clients
  • RESTful APIs

Unit Testing (6 topics)

  • Unit Testing Terminology
  • Test Classes
  • Test Fixtures
  • Test Cases
  • Assertions
  • Test Runners

Prerequisites

elegates should be able to build simple applications in a language other than Python that exploit standard programming techniques including sequence, selection, iteration, and reuse (functions). Ideally the delegate will have written some object oriented code but should at least have some awareness of object oriented techniques.

Course PDF

Print

Sections