Fibonacci sequence with python turtle
3 min readApr 30, 2019
Here’s a simple code to create the fibonacci sequence.
What is the Fibonacci Sequence?
Wikipedia-
In mathematics, the Fibonacci numbers, commonly denoted Fn form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1.
So basically, the Fibonacci sequence starts like this: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 and so on forever.
Examples Fibonacci Sequence in nature
Flower Petals & Seed heads
Pine cones
Spiral Galaxies
Faces
Shells
Why is the Fibonacci sequence important?
- The mathematics of the golden ratio and of the Fibonacci sequence are intimately interconnected. Fibonacci numbers and the golden ratio have been used in works of art and architecture for centuries.
- The patterns of the sequence is reflected in the structures of various plants, animals and humans, and the manifestations of the Fibonacci numbers and the golden ratio are seemingly endless. Thus, this indicates the mathematical nature of a world formed with order and precision.
- This sequence also has myriads of applications in many other areas that is worth exploring. You can read more about them in the links below.
Now that you have a little knowledge on what the fibonacci sequence is, let’s dive into the code!
THE CODE
Challenge
- Try adding the spiral to the code. Comment down below if you managed to do it!