Artificial Intelligence1 min read

Gemini 4 Neon Draws a Python Reading a Book

By · Published by Everything Blog

In short

Real Python conducted the benchmark battery without a system prompt, requiring Gemini 4 Neon to process tasks ranging from complex graphics generation to legacy code updates. In the drawing evaluation, the AI generated an error-free 429-line turtle graphics script that successfully executed 2,212 individual commands. It also proved capable of identifying non-existent standard library functions like itertools.flatten() and offering functional alternatives. However, the model showed limitations in basic version awareness by failing to name the newest Python release.

Key points

  • Benchmarking the artificial intelligence model across five everyday coding tasks cost for…: Benchmarking the artificial intelligence model across five everyday coding tasks cost forty-eight cents in API fees.
  • Code modernization tests revealed high precision, with the model adopting modern idioms w…: Code modernization tests revealed high precision, with the model adopting modern idioms without modifying unrequested targets.
  • The model exhibited minor knowledge gaps by failing to specify the newest Python release…: The model exhibited minor knowledge gaps by failing to specify the newest Python release when prompted.

Sources checked by our analysis pipeline: 1

We asked Gemini 4 Neon to draw a python reading a book using the turtle

module. It’s one of five tasks in Real Python’s informal model comparison, which explores how models handle everyday Python work. Here’s the drawing from this run:

We use the same prompts and no system prompt for each model. The results come from the returned code and replies. These informal tests explore a few habits that can affect your everyday Python work:

Task | What we ask | What we read off the answer |

---|---|---|

The snake | Write a Python turtle program that draws a python reading a book. | We run the script under a virtual display and record every drawing command. The picture is whatever came out, arrow and all. |

How modern its Python is | Write a small command-line tool. | Which features it uses, such as list[str] , tomllib , and Path.walk() . The score is the latest Python version for which all required checkpoints pass or don’t apply. |

Modern idioms | The same CLI tool as above.…

Artificial Intelligence