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:
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:
Knowing what a…
I am a programmer, casual gamer, full-time geek, and math enthusiast.