In this article we are going to look a some different ways to check whether a number is prime using Python. As well as being an interesting and useful exercise, this exploration...
In this article we are going to learn how to do basic animation and collision detection with Python Turtle Graphics. The best thing to do here is to copy the code provided...
I found this code a while back and I thought it deserved more attention as it’s such an awesome example of what can be done with Python Turtle Graphics and Python object-oriented...
User input is one of the things which makes Python programming powerful and interesting, as it provides interactivity. This article shows you how to make Python ask for input from the user...
I expect you are acquainted with the terms web developer and software developer. However, I have come across many people who have the misconception that both terms mean the same thing. This...
Object-Oriented programming is an essential skill for any serious Python programmer. It is one of the most important programming paradigms, and vast amounts of code exist which make use of it. GETTING...
Writing robust code is always a good idea, but is particularly important for mission critical contexts, such as where safety is an issue. There are several historical examples of where faulty code...
This post explores some different ways of generating the famous Triangle Numbers with Python. Before reading on, have a go a writing some Python code to print out the first 10 Triangle...
Functions are a very important aspect of Python programming. They provide a way to structure your code meaningfully and also to make parts of it reusable. Think of a function as being...
Random numbers are very important in computing. Whenever you need to simulate something in the real world where the outcome is unknown, random numbers come into play. A classic example is their...