---
# System prepended metadata

title: Recursion

---

# Recursion
>
Teacher: Ms Punter
## Objectives:

1. Discuss fractals
2. Look at recursion
3. See how recursion can be used to make fractals

----

This is a fractal - Mandelbrot. Can you describe it?

{%youtube Ao9N3kNBJQY %}

https://www.youtube.com/watch?v=Ao9N3kNBJQY

----

Fractals are patterns. A perimeter or a surface area of a fractal __can__ be infinite. Perimeters or surface areas of fractals are made up of the shape of the same fractal but at smaller scale. Fractals are driven by recursion.

![](https://i.imgur.com/QGthqEc.gif)

----

## A recursive function is a function that calls itself

----

<iframe height="600px" width="100%" src="https://repl.it/@missPunter/CountdownRcrsv?lite=true" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals"></iframe>

----