If you are a programming beginner or know a little bit about mathematics, you have probably heard of the Fibonacci sequence at some point. According to Wikipedia, the Fibonacci sequence is a sequence in which each number is equal to the sum of the previous two numbers.

In this blog, I will go through 2 ways you can generate this sequence using Python 3.

In programming languages, recursion occurs whenever a function calls itself once or several times to compute an algorithm. You can read more about recursion here.

These are the steps to create this recursive function:

- Call the…

According to Wikipedia, Sudoku is a logic-based, combinatorial number-placement puzzle. In classic sudoku, the objective is to fill a 9×9 grid with digits so that each column, each row, and each of the nine 3×3 subgrids that compose the grid (also called “boxes”, “blocks”, or “regions”) contain all of the digits from 1 to 9.

These are the rules of the regular sudoku:

- Each row must contain every number from 1 to 9 exactly once.
- Each column, similarly, needs one of every number from 1 to 9.
- Each 3x3 ‘region’ needs to follow the same 1–9 pattern.

Knowing what a…

I am a programmer, casual gamer, full-time geek, and math enthusiast.