## Number Placement Puzzle with Python

This post is about a fun puzzle called the number placement puzzle. I have provided an interactive console program that lets you explore it. I have also provided a couple of algorithms...

## Morse Code with Python

In this article we will learn how to use Python programming to convert messages from English to Morse Code and vice versa. We will also learn how to play the Morse Code...

## Plotting Polynomials with Python

I’ve been enjoying reading A Programmer’s Introduction to Mathematics by Jeremy Kun recently. After the introduction, the first main topic it covers is a neat trick for sharing secrets (encrypting messages) so...

## Ransom Note HackerRank Challenge in Python

Image courtesy of Sheila Sund from Salem, United States, CC BY 2.0, via Wikimedia Commons. This Python programming challenge is adapted from a challenge on HackerRank called Ransom Note, which is part...

## 100 Doors Python Coding Challenge

In this lesson we are going to look at a fun coding challenge in Python called “100 Doors”. It’s a great challenge for developing algorithmic thinking and Python programming skills. Image courtesy...

## Python Programming Challenge – Counting Pairs

Here’s a fun algorithmic challenge for you. Given a list of integers, write a function to find the total number of complete pairs contained in the list. For example: for the input...

## The Stack Data Structure in Python

The stack is a wonderfully simple data structure which despite its simplicity makes many powerful algorithms possible. Some of the uses for a stack data structure in software development are: The Depth-First...

## Python Programming – List Mutation

A Surprising Feature of Python Lists What do you expect the output of the following Python code to be? def mutate_or_not(a_list): a_list[0] = "I've changed" my_list = [1, 2, 3] mutate_or_not(my_list) print(my_list)...

## Python Programming Two Sum Interview Problem

This article is about a classic challenge that is often given in Python coding interviews. There are several different approaches you could take, but the aim is to come up with a...

## Python Programming Challenge – Maximum Value in List

Here’s a python programming challenge for you to help you develop your problem solving and algorithmic thinking skills. Find the position of the maximum value in a Python list of integers. Some...