I had a phone interview for a Python job the other day. It started out really well, he was very … More

# Tag: range

# Number guessing game

The number guessing game incorporates several simple but important elements of elementary programming and is a good candidate for an … More

# Stars and Stripes

A variation on the Stars and Stripes American Flag for Independence Day. It’s an exercise in the use of transparency in … More

# A Fake Circle made of Straight Lines

Inspired by this post on Reddit, I wrote this little script to do the same thing. The circle is an … More

# Playing in Python with Pickover’s Premise per Pi

My favourite tweeter is Clifford A. Pickover. His tweets are delightful nuggets of math, physics & more. I have a copy … More

# A Graphical Dice Simulator

This PyGame program simulates the roll of a die (or dice if you prefer). It’s a fairly simple, straightforward thing … More

# Random Walk

A colourful random walk. The basic idea is very simple: choose a random heading in the range 0:360 degrees. Step … More

# Naive Mandelbrot Set

This is your basic Mandelbrot Set plotter. Very little effort made to speed it up, except for plotting top & … More

# FizzBuzz

This is apparently a well-known interview question (but not one I was ever asked). Print the numbers 1 to 100, … More