Speeding up complex existing Python code

This was a very interesting project. The client had a ‘multi objective evolutionary algorithm’ implemented in Python. It tries to find an optimal solution to a complex problem by starting with some random solutions...

Creation of training course materials

Skiller Whale, an innovative training company for development teams, asked me to help them develop their advanced Python training materials. I created course outlines, 13 exercises and 25 code samples on multi threading, multi...

Extract, Transfer, Load (ETL) projects

You might think that moving some data around from A to B should be simple. Unfortunately it is not that straight forward. Having done a number of ETL projects, I’ve had to deal with:...

Control your computer using Python

Python is an excellent language for taking control of your computer and performing some of the more tedious tasks. I recently used it to automate how I create Python training videos and have just...

A simple GUI (graphical user interface)

Python is an easy-to-learn yet powerful language, and comes with a wealth of libraries. It is often used to create simple scripts. You run these on the command line, giving it any parameters it...

Take out your turtle for a recursive walk

Python is a simple but powerful language, and comes with a wealth of libraries. It took just 10 lines of code and the Turtle library to create the black line in the image above....

A simple plot with Python and Bokeh

Python is a simple but powerful language, and comes with a wealth of libraries. The chart above took just 9 lines of Python. All the hard work is done by the Bokeh library. It...

Use Python to update a spreadsheet

How would you like to grab a share price daily and store it in a spreadsheet? Or add a new column to dozens of spreadsheets – automatically? Python is a simple but powerful language,...

1/2 + 1/3 = 1/6

Fractions in Python

When you ask your spreadsheet to calculate 1/2 + 1/3 you get something like this: This is obviously an approximation. The 3’s after the decimal point repeat indefinitely. The correct answer is: 1/2 =...