Chris Webb
banner
codedrome.bsky.social
Chris Webb
@codedrome.bsky.social
I am a software developer from London, England, and I write about programming, mostly in Python, and various STEM topics. My articles are published on Substack.
I recently spotted an extraneous space after a dot in a bit of my Python code. Obviously invalid syntax apart from the fact that it isn't. This:

name = "Chris"
print(name. upper())

actually works! Why? How? Can anyone explain? It also works with a space before the dot.

#python #pythonprogramming
November 7, 2025 at 4:47 PM
My latest Substack article: An Introduction to the Python Pillow Image Library

#python #pythonprogramming #pillow #imageediting

codedrome.substack.com/p/an-introdu...
An Introduction to the Python Pillow Image Library
Pillow describes itself as "the friendly PIL fork", PIL being the now-defunct Python Imaging Library.
codedrome.substack.com
October 11, 2025 at 2:39 PM
I love assembly language. Except when I don't.
#assembly
#assemblylanguage
September 29, 2025 at 11:58 AM
Part 1 of my series "Noughts and Crosses / Tic Tac Toe in Python". In this article I write a console/curses based implementation.

codedrome.substack.com/p/noughts-an...

#python #PythonProgramming
Noughts and Crosses / Tic Tac Toe in Python
Part 1: Console UI using curses
codedrome.substack.com
June 25, 2025 at 1:46 PM
My latest Substack article "Calculating RGB Values from Light Wavelengths in Python".

codedrome.substack.com/p/calculatin...

#python
#pythonprogramming
Calculating RGB Values from Light Wavelengths in Python
A while ago I wrote a two-part article about visible light, and in particular the wavelength/frequency proportionality.
codedrome.substack.com
June 17, 2025 at 11:44 AM
Levenshtein Word Distance in Python. This algorithm calculates the number of steps required to change one word into another and has various uses including spell checking suggestions.

codedrome.substack.com/p/levenshtei...

#python

#pythonprogramming

#algorithms

#levenshtein
Levenshtein Word Distance in Python
I recently wrote an implementation of the Soundex Algorithm which attempts to assign the same encoding to words which are pronounced the same but spelled differently.
codedrome.substack.com
April 8, 2025 at 5:02 PM
The Soundex Algorithm in Python
This algorithm assigns identical codes to words or names which it thinks are pronounced the same. It's not brilliant but coding it in Python is an interesting project.
codedrome.substack.com/p/soundex-al...
#python #pythonprogramming #programming #soundex #algorithms
The Soundex Algorithm in Python
Soundex is one of a number of phonetic algorithms which assign values to words or names so that they can be compared for similarity of pronounciation.
codedrome.substack.com
April 2, 2025 at 12:16 PM
Testing the Performance of Python Named Tuples: are named tuples slower than ordinary ones? Let's find out. (Spoiler alert: yes, a bit.)

codedrome.substack.com/p/testing-th...

#python #programming #tuple #namedtuple
Testing the Performance of Python Named Tuples
Are named tuples slower than ordinary ones? Let's find out. (Spoiler alert: yes, a bit.)
codedrome.substack.com
March 25, 2025 at 12:25 PM
In the second and final part of my series Exploring the Visible Spectrum with Python I plot the wavelengths, frequencies and energies of the colours of visible light using Matplotlib.
#python #pythonprogramming #programming #light #spectrum #physics #matplotlib
codedrome.substack.com/p/visible-sp...
Exploring the Visible Spectrum with Python Part 2
This is the second part of my two-part series on the visible spectrum.
codedrome.substack.com
March 18, 2025 at 1:46 PM
Exploring the Visible Spectrum with Python Part 1
In this article I write Python code to calculate the frequencies, wavelengths, energies and RGB values of visible light.
#python #pythonprogramming #physics #numpy #matplotlib #light #spectrum
codedrome.substack.com/p/visible-sp...
Exploring the Visible Spectrum with Python Part 1
The Visible Spectrum
codedrome.substack.com
March 11, 2025 at 1:38 PM
Formula Triangles in Python Part 2 of 2.

Examining electrical current with Ohm's Law, Newton's First and Second Laws of Motion and more.

#python #pythonprogramming #programming #mathematics #physics

codedrome.substack.com/p/formula-tr...
Formula Triangles in Python Part 2
The Inner Workings of the Universe With Just Three Numbers
codedrome.substack.com
March 4, 2025 at 2:03 PM
New on Substack: Formula Triangles in Python Part 1
Many laws of physics can be expressed with just three values and illustrated using formula triangles which in this article I implement in Python.
#python #pythonprogramming #programming
#physics #mathematics
codedrome.substack.com/p/formula-tr...
Formula Triangles in Python Part 1
The Inner Workings of the Universe With Just Three Numbers
codedrome.substack.com
February 25, 2025 at 12:04 PM
New on Substack - Benford’s Law in Python which describes the distribution of the first digits of most sets of numeric data. Here I explain the ideas and implement a demo in Python
codedrome.substack.com/p/benfords-l...
#statistics #benfordslaw #datascience #programming #python #pythonprogramming
Benford’s Law in Python
In this post I will write a Python implementation of Benford's Law which describes the distribution of the first digits of most sets of numeric data.
codedrome.substack.com
February 20, 2025 at 3:28 PM
My latest Substack article: Zipf’s Law in Python.

Zipf's Law describes a probability distribution that can be applied to many types of data and in this article I'll use it to analyse word frequencies in Bram Stoker's Dracula.

codedrome.substack.com/p/zipfs-law-...
Zipf’s Law in Python
In this post I will write a project in Python to apply Zipf's Law to analysing word frequencies in a piece of text.
codedrome.substack.com
February 11, 2025 at 1:19 PM
My latest Substack article: Radians: An Exploration in Python

This article gives an overview of radians as a unit of angle measurement, shows how to convert between radians and degrees, and how to use radians in Python trigonometric functions.

codedrome.substack.com/p/radians-an...
Radians: An Exploration in Python
Measuring and using angles using radians
codedrome.substack.com
February 4, 2025 at 2:28 PM
My Substack article "Estimating Pi in Python". There are many ways to estimate pi and in this article I've coded a few in Python.

codedrome.substack.com/p/estimating...
Estimating Pi in Python
For this project I will code a few of the many methods of estimating Pi, the incredibly useful number that tells us the ratio of a circle's circumference to its diameter.
codedrome.substack.com
January 17, 2025 at 5:21 PM
New Substack article "The Caesar Shift Cypher in Python"

codedrome.substack.com/p/the-caesar...
The Caesar Shift Cypher in Python
The Caesar Shift Cypher was named after Julius Caesar and is the simplest method of encypherment possible.
codedrome.substack.com
January 14, 2025 at 4:09 PM
Reposted by Chris Webb
Python Hub Weekly Digest for 2025-01-12

https://pythonhub.dev/digest/2025-01-12/
January 12, 2025 at 6:15 PM
My latest Substack article "Exploring Radioactive Decay Half-Lives with Python"

codedrome.substack.com/p/radioactiv...
Exploring Radioactive Decay Half-Lives with Python
In this article I will briefly explain radioactive decay and the concept of half-lives, and then go on to write Python code to illustrate the underlying mathematics.
codedrome.substack.com
January 7, 2025 at 5:09 PM
My first post! My programming content is now published on Substack and I aim to create one new article each week. I mostly write about implementing some topic in science or mathematics in Python. This is a link to my Substack articles.

codedrome.substack.com/archive
Archive - CodeDrome
Full archive of all the posts from CodeDrome.
codedrome.substack.com
January 6, 2025 at 5:39 PM