Assigning Exam Score.

Going one step back from the previous two posts (here and here), a Python code could be used to mark the answers submitted by students, returning the exam score for each student. With the data on hand, the distribution of the students’ choices for each question could be analysed, allowing the examiner to assess what […]

Travelling Salesman Problem. A Brute Force Approach.

The travelling salesman problem asks the following question: “Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city and returns to the origin city?” In the following post, the cities are represented by coordinates on a Cartesian plane. The distance (Euclidean distance) […]

Managing Laboratory Inventory (Consumables).

An adequately stocked consumables inventory is essential for the smooth operation of any research laboratory. Someone in the lab needs to take on the task of the regular trips to the lab store to replenish a trolley-load of consumables, lest face the wrath of fellow lab users. In academic research labs, there is usually a […]

HPLC Calibration Curve and Data Analysis.

One common analysis a chemist does in a laboratory is the use of high performance liquid chromatography (HPLC) to determine the concentration of a particular analyte. After the method development is complete, a typical workflow for sample analysis is as follows:i) Measurement of the peak areas of various known concentration of the calibration standard.ii) Plot […]

A Little Bit of Reaction Engineering.

This post will be a little (just a little…) intensive on the physical chemistry side of things as I explore the other functions of the Python Programming Language, using an example on reaction kinetics.Let’s consider the following reaction scheme showing the elementary reactions, where the starting material A gets converted to B with a rate […]