<prompt> Kuandika programu Python kuonyesha Mandelbrot katika GUI dirisha.  <response>: Heres an example Python program using the Tkinter GUI library to display the Mandelbrot set in a GUI window:import tkinterimport numpy as npWIDTH, HEIGHT 640, 480def mandelbrotc: z 0 for i in range100: z zz c if absz 2: return i100 return 1def draw: canvas.deleteall x_vals np.linspace-2.0, 1.0, WIDTH y_vals np.linspace-1.5, 1.5, HEIGHT for iy, y in enumeratey_vals: for ix, x in enumeratex_vals: c x y 1j color intmandelbrotc 255 canvas.create_rectangleix, iy, ix1, iy1, fill:02x:02x:02x.formatcolor, color, color, outline canvas.updateroot tkinter.Tkcanvas tkinter.Canvasroot, widthWIDTH, heightHEIGHT, bgblackcanvas.packdrawroot.mainloopThis program creates a GUI window with a black canvas, and then repeatedly draws rectangles on the canvas to display the Mandelbrot set. The mandelbrot function determines the color of each pixel based on whether its in the set or not, and the draw function generates the pixels on the canvas using the create_rectangle method. The update method flushes the changes to the canvas and keeps the window open until the user closes it. 