Gemini 4 Argon Draws a Python Reading a Book – Real Python
Gemini 4 Argon Draws a Python Reading a Book by Martin Breuss Updated Oct 14, 2026 Reading time estimate 15m ai Table of Contents Remove ads We asked Gemini 4 Argon 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. How many of the idioms we check for came out modern, out of those that applied to the model’s code. Latest Python version reported Which Python release is the newest? Whether its answer is up to date. This doesn’t establish its training cutoff.
Unrelated edits Add an --ext option to a 50-line script. The script works but has ten spots that are easy to tidy up, like an unused import, % formatting, and a typo in a comment. None of them is part of the task. We list the ones the model changed anyway. Inspect the diff to see whether those changes were useful. Spots a made-up function? How do I use itertools.flatten() ? That function doesn’t exist. Caught it means the model said so.
Sidestepped it means it quietly showed a real alternative without mentioning that. Fell for it means it invented an answer. Reasoning effort The thinking setting we ran with. default means we left the model’s own setting alone, which is how most people use it. The token count is how much thinking the API reported. Cost What the API charged for all five tasks, in US dollars. A ≈ means the API didn’t report a bill, so we priced the tokens at the model’s list price.
The overview page shows the same Python feature score alongside that version’s release year. Code can use newer features and still receive a lower score. New Model Drops? We Run the Bench: Join the Real Python Newsletter to get every new AI benchmark run and the full write-ups in your inbox, plus weekly Python tutorials, the moment they land. Learning Path Python Coding With AI 12 Resources ⋅ Skills: Cursor, Claude Code, AI-Assisted Development, Context Engineering, AI Code Review The Results at a Glance Task Result Detail The snake Drew it 521 drawing commands, 216 lines of code How modern its Python is Python 3.10 (2021) pinned by datetime_utc .
Newest feature used: Python 3.12 Modern idioms 12 of 15 of the checkpoints that applied to its code Latest Python version reported no version given the reply is quoted below Unrelated edits 0 of 10 left every unrelated spot alone Spots a made-up function? Caught it said the function doesn’t exist and offered a real alternative Reasoning effort default no thinking tokens reported Cost $0.06 for all 5 tasks, as billed by the API Response time 1 min 11 s 5.4k output tokens The run: google/gemini-4-argon via OpenRouter, at its default reasoning settings, with no system prompt and the returned code left unchanged.
Remove ads The Five Tasks The Snake The script ran without errors. You can explore the code below or try drawing your own snake with our beginner’s guide to Python turtle . Language: Python Filename: turtle.py import turtle def setup_canvas (): screen = turtle . Screen () screen . title ( "A Python Reading a Book" ) screen . bgcolor ( "#F0F8FF" ) # Alice Blue background screen . setup ( width = 800 , height = 600 ) t = turtle .
Turtle () t . speed ( 8 ) # 1 is slow, 10 is fast, 0 is instant t . hideturtle () return t , screen def draw_circle ( t , x , y , radius , color , outline = "black" , pen_size = 2 ): t . penup () t . goto ( x , y - radius ) t . pendown () t . pensize ( pen_size ) t . color ( outline , color ) t . begin_fill () t . circle ( radius ) t . end_fill () def draw_snake_body ( t ): # We draw overlapping circles from the tail to the neck to create a coiled effect body_segments = [ # Base coil (left to right) ( - 130 , - 140 , 20 ), ( - 100 , - 145 , 25 ), ( - 60 , - 150 , 30 ), ( - 20 , - 150 , 32 ), ( 20 , - 150 , 32 ), ( 60 , - 145 , 30 ), # Middle coil (right to left) ( 40 , - 110 , 28 ), ( 0 , - 110 , 30 ), ( - 40 , - 110 , 30 ), ( - 80 , - 105 , 28 ), # Rising neck (curving up) ( - 95 , - 70 , 25 ), ( - 90 , - 30 , 24 ), ( - 75 , 10 , 23 ), ( - 55 , 45 , 22 ), ( - 35 , 75 , 22 ), ] # Alternate slightly between two shades of green for texture for i , ( x , y , r ) in enumerate ( body_segments ): color = "#558B2F" if i % 2 == 0 else "#689F38" draw_circle ( t , x , y , r , color ) def draw_snake_head ( t ): # Main head draw_circle ( t , - 10 , 95 , 35 , "#7CB342" ) # Snout draw_circle ( t , 15 , 85 , 28 , "#7CB342" ) # Tongue t . penup () t . goto ( 43 , 80 ) t . pendown () t . color ( "#D32F2F" ) t . pensize ( 3 ) t . setheading ( - 15 ) t . forward ( 20 ) # Fork in the tongue t . left ( 30 ) t . forward ( 8 ) t . backward ( 8 ) t . right ( 60 ) t . forward ( 8 ) def draw_glasses_and_eyes ( t ): # Left Eye draw_circle ( t , 0 , 105 , 8 , "white" , pen_size = 1 ) draw_circle ( t , 3 , 103 , 3 , "black" , pen_size = 1 ) # Looking down at the book # Right Eye draw_circle ( t , 25 , 100 , 8 , "white" , pen_size = 1 ) draw_circle ( t , 28 , 98 , 3 , "black" , pen_size = 1 ) # Looking down at the book # Glasses Frames (Gold/Brown) t . pensize ( 3 ) t . color ( "#5D4037" ) # Left Lens t . penup () t . goto ( 0 , 105 - 12 ) t . setheading ( 0 ) t . pendown () t . circle ( 12 ) # Right Lens t . penup () t . goto ( 25 , 100 - 12 ) t . setheading ( 0 ) t . pendown () t . circle ( 12 ) # Bridge of glasses t . penup () t . goto ( 11 , 105 ) t . pendown () t . goto ( 14 , 103 ) # Earpiece (going back to the head) t . penup () t . goto ( - 12 , 105 ) t . pendown () t . goto ( - 35 , 115 ) def draw_book ( t ): # Draw an open book tilted for reading # 1.
Red Book Cover (Background polygon) t . penup () t . goto ( 60 , - 140 ) # Bottom spine t . pendown () t . color ( "black" , "#C62828" ) # Dark Red t . pensize ( 2 ) t . begin_fill () t . goto ( - 10 , - 90 ) # Bottom left t . goto ( - 30 , 10 ) # Top left t . goto ( 40 , - 40 ) # Top spine t . goto ( 120 , 10 ) # Top right t . goto ( 140 , - 90 ) # Bottom right t . goto ( 60 , - 140 ) # Back to bottom spine t . end_fill () # 2.
Left Page (White) t . penup () t . goto ( 60 , - 130 ) # Bottom spine t . pendown () t . color ( "black" , "#FFFDF7" ) # Off-white t . begin_fill () t . goto ( - 5 , - 85 ) # Bottom left t . goto ( - 22 , 5 ) # Top left t . goto ( 40 , - 35 ) # Top spine t . goto ( 60 , - 130 ) # Back to bottom spine t . end_fill () # 3. Right Page (White) t . penup () t . goto ( 60 , - 130 ) # Bottom spine t . pendown () t . begin_fill () t . goto ( 130 , - 85 ) # Bottom right t . goto ( 112 , 5 ) # Top right t . goto ( 40 , - 35 ) # Top spine t . goto ( 60 , - 130 ) # Back to bottom spine t . end_fill () # 4.
Draw "Text" lines on the pages t . pensize ( 2 ) t . color ( "#9E9E9E" ) # Grey for text # Left page text for i in range ( 1 , 5 ): t . penup () t . goto ( 40 - ( i * 4 ), - 35 - ( i * 18 )) t . pendown () t . goto ( - 15 + ( i * 3 ), - 5 - ( i * 18 )) # Right page text for i in range ( 1 , 5 ): t . penup () t . goto ( 50 + ( i * 4 ), - 35 - ( i * 18 )) t . pendown () t . goto ( 105 + ( i * 3 ), - 5 - ( i * 18 )) def draw_tail_holding_book ( t ): # Drawn AFTER the book so it overlaps the pages, looking like it's holding it tail_segments = [ ( 130 , - 130 , 15 ), ( 145 , - 105 , 13 ), ( 135 , - 80 , 11 ),
The rest of this page is on the live site.