show me something cool
- User
show me something cool
Assistant
Here's a Python script that generates an ASCII art version of the Mandelbrot Set in your terminal! 🎨
import sys width = 80 height = 40 chars = [' ', '·', '.', ':', ';', '!', '*', '■'] max_iter = 100 re_min, re_max = -2.0, 1.0 im_min, im_max = -1.0, 1.0 for row in range(height): line = [] for col in range(width): x0 = re_min + (col / width) * (re_max - re_min) y0 = im_min + (row / height) * (im_max - im_min) c = complex(x0, y0) z = 0j count = max_iter for i in range(max_iter): z = z*z + c if abs(z) > 2: count = i break index = (count * (len(chars)-1)) // max_iter line.append(chars[index]) print(''.join(line))
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.