defmandelbrot():# returns True if c, complex, is in the Mandelbrot set@micropython.nativedefin_set(c):z=0foriinrange(40):z=z*z+cifabs(z)>60:returnFalsereturnTruelcd.clear()foruinrange(91):forvinrange(31):ifin_set((u/30-2)+(v/15-1)*1j):lcd.set(u,v)lcd.show()# PC testingimportlcdlcd=lcd.LCD(128,32)mandelbrot()