Draw the Mandelbrot Set in Python – Real Python

PHOTO EMBED

Fri Apr 22 2022 23:02:12 GMT+0000 (Coordinated Universal Time)

Saved by @jwinther #python #mandelbrot #complex_numbers

>>> def z(n, c):
...     if n == 0:
...         return 0
...     else:
...         return z(n - 1, c) ** 2 + c
content_copyCOPY

Not tried out yet, but it will work :)

https://realpython.com/mandelbrot-set-python/