## Python Coding Challenge – Sum of Squares

Here’ a fun Python challenge involving just a bit of mathematical know-how: Write a function that takes an argument n and prints a pair of natural numbers x, y such that x²...

Computer programming and Mathematics are deeply connected. Develop your understanding of both subjects by making connections between them.

Here’ a fun Python challenge involving just a bit of mathematical know-how: Write a function that takes an argument n and prints a pair of natural numbers x, y such that x²...

Bitwise operators and bit manipulation are like recursion in that they are both topics that are fundamental to computing, yet the amount of use you will make of them will vary gratly...

In this article we discuss recursion in Python programming. Recursion is a fundamental concept in Computer Science, and regardless of what your development goals are, it is good to have an understanding...

The modulo operator is used in Python programming when you need to find the remainder of integer division. It comes up in many important algorithms, and is represented by the symbol %....

2-dimensional lists are an extremely important data structure in Python programming, with many applications. They can be very confusing to begin with, and you should make sure you are confident and competent...

This post is about how to produce retro sound effects using Python. These kinds of effects added greatly to the excitement of playing early computer games and are still loved by many....

Have you heard of the puzzle about the farmer, the wolf, the goat and the cabbage? You can play it here (click the “run” button to start): There are many different ways...

The Eight Queens Puzzle is a classic problem whose goal is to place 8 queens on an 8x8 chessboard in such a way that none of the queens share a row, column...

Here’s a puzzle to help practice your computational thinking skills. Don’t forget to take it slowly and think through your answer carefully before committing. A sock drawer contains ten pairs of black...

In this post we will be looking at an idea from mathematics called a random walk. In a random walk, each step in a process is determined randomly and we are interested...

© 2019 Compucademy™ All Rights Reserved. Terms and Conditions