Call

Python Programming

Duration: 2 Days

Who should attend:

This course is ideal for those new to Python programming

Pre-requisites:

Delegates should have a basic understanding or programming principles.

You can download the outline HERE

Price: £1995+VAT

Want to talk through your training requirements with one of our curriculum specialists? You can get in touch by EMAIL or PHONE

Module 1: About Python

  • Why Python was invented.

  • What Python is good for (and what it's not).

  • History and versions.

  • Development tools.

  • Virtual environments.

Module 2: Getting Started

  • Scripts vs programs.

  • A simple Python script.

  • Running a program.

  • The interactive interpreter.

  • Layout and white space.

  • Storing scripts.

  • Python 'variables' and names.

  • How typing works in Python.

  • Some of Python's types.

  • Type conversion.

  • Python's operators.

Module 3: Control Flow

  • if, else and elif.

  • Interval comparisons.

  • for, sequences and ranges.

  • break, continue and pass.

  • Iterating through strings and collections.

  • while loops.

  • Implementing menus.

Module 4: Collections

  • Lists - Python's smart arrays.

  • Dictionaries - Python's ubiquitous collection.

  • Tuples - Python's most used but often misunderstood collection.

  • List and dictionary comprehensions.

  • Generators and coroutines.

  • The other collections.

Module 5: Functions

  • The purpose of functions.

  • Writing and calling functions.

  • Passing arguments.

  • Named (keyword) arguments.

  • Optional (default) arguments.

  • Local and global variables.

  • The main function and __name__.

  • Modules and packages.

  • Writing and using modules.

  • Import options.

  • Lambdas.

  • Recursion and closures.

Module 6: Files and Strings

  • Opening files for read, write and append.

  • Reading and writing.

  • Using 'with'.

  • Text and binary files.

  • Using delimited text files for data.

  • Error and exception handling.

  • Formatting strings.

  • Splitting strings.

  • Slicing strings.

Module 7: Object-oriented Python

  • Object-oriented programming and its benefits.

  • Components, classes and objects.

  • Defining a class and creating objects.

  • Initialization and the __init__ method.

  • 'Private' fields.

  • Functions, methods and attributes.

  • Object collections.

  • Treating objects as strings.

  • Implementing standard operators.

  • Decorators.

  • Read-only and read-write properties.

  • Inheritance.

  • 'Duck typing' and polymorphism.

Module 8: Multitasking

  • Multitasking concepts.

  • Threads, processes and processors.

  • Creating and communicating with a process.

  • Creating and starting a thread.

  • Thread limitations and the process solution.

  • Queues and shared arrays.

  • The concurrent.futures module.

  • Thread and process pool executors.

Module 9: Networking

  • Networking concepts.

  • TCP/IP. Sockets.

  • A Python client.

  • A Python server.

  • Supporting many clients.

Module 10: Unit Testing

  • The importance of testing.

  • DocTest.

  • Unit testing and Test Driven Development.

  • Writing tests.

  • Running tests and fixing problems.

Module 11: Databases

  • How databases work, and how Python interacts with them.

  • SQLite, MySQL and others.

  • Connections and cursors.

  • Querying and manipulating data.

Module 12: Introducing Graphical User Interfaces

  • Tkinter and its alternatives.

  • Creating a GUI.

  • Basic controls.

  • Event handling.

Module 13: Introducing Python for Data Science

  • pandas and DataFrames.

  • NumPy and multi-dimensional arrays.

  • Matplotlib and pyplot.

  • Machine learning.

There are now over 155 million Office 365 business users!