GPT-6.1 Terra Draws a Python Reading a Book – Real Python
GPT-6.1 Terra Draws a Python Reading a Book by Martin Breuss Updated Oct 30, 2026 Reading time estimate 15m ai Table of Contents Remove ads We asked GPT-6.1 Terra 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 2853 drawing commands, 110 lines of code How modern its Python is Python 3.10 (2021) pinned by datetime_utc .
Newest feature used: Python 3.11 Modern idioms 6 of 14 of the checkpoints that applied to its code Latest Python version reported 3.14.5 the reply is quoted below Unrelated edits 0 of 10 left every unrelated spot alone Spots a made-up function? Sidestepped it showed a real alternative without saying the function is made up Reasoning effort default 2.6k thinking tokens over all five tasks Cost $0.03 for all 5 tasks, as billed by the API Response time 1 min 16 s 6.3k output tokens The run: openai/gpt-6.1-terra via OpenRouter, at its default reasoning settings, with no system prompt and the returned code left unchanged.
Live Course: Wondering which of these models and tools belong in your own workflow? Real Python’s AI Coding Tools for Python Developers live course gives you a map of the AI coding tool landscape, independent verdicts on each category, and one concrete next step. Join the waitlist to hear about the next dates. 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 math import turtle screen = turtle . Screen () screen . setup ( 800 , 650 ) screen . bgcolor ( "#f8f4e8" ) screen . title ( "A Python Reading a Book" ) pen = turtle . Turtle () pen . hideturtle () pen . speed ( 0 ) screen . tracer ( 0 ) def move ( x , y ): pen . penup () pen . goto ( x , y ) pen . pendown () def polygon ( points , fill , outline = "#324a35" , width = 2 ): pen . color ( outline , fill ) pen . pensize ( width ) move ( * points [ 0 ]) pen . begin_fill () for point in points [ 1 :]: pen . goto ( * point ) pen . goto ( * points [ 0 ]) pen . end_fill () def ellipse ( cx , cy , rx , ry , fill , outline = None , width = 2 ): points = [ ( cx + rx * math . cos ( i * math . tau / 100 ), cy + ry * math . sin ( i * math . tau / 100 )) for i in range ( 100 ) ] polygon ( points , fill , outline or fill , width ) def line ( points , color , width = 2 ): pen . color ( color ) pen . pensize ( width ) move ( * points [ 0 ]) for point in points [ 1 :]: pen . goto ( * point ) def bezier ( p0 , p1 , p2 , p3 ): points = [] for i in range ( 101 ): t = i / 100 u = 1 - t points . append (( u ** 3 * p0 [ 0 ] + 3 * u ** 2 * t * p1 [ 0 ] + 3 * u * t ** 2 * p2 [ 0 ] + t ** 3 * p3 [ 0 ], u ** 3 * p0 [ 1 ] + 3 * u ** 2 * t * p1 [ 1 ] + 3 * u * t ** 2 * p2 [ 1 ] + t ** 3 * p3 [ 1 ], )) return points # Coiled body: a dark border with a green stroke on top. coil = [ ( 45 + 180 * math . cos ( i * math . tau / 180 ), - 165 + 70 * math . sin ( i * math . tau / 180 )) for i in range ( 181 ) ] line ( coil , "#314c35" , 54 ) line ( coil , "#78a85c" , 44 ) # Markings along the coil. for angle in range ( 0 , 360 , 30 ): a = math . radians ( angle ) ellipse ( 45 + 180 * math . cos ( a ), - 165 + 70 * math . sin ( a ), 12 , 7 , "#b9cd77" ) # Neck rising behind the book. neck = bezier (( 210 , - 155 ), ( 265 , - 95 ), ( 200 , 90 ), ( 145 , 145 )) line ( neck , "#314c35" , 54 ) line ( neck , "#78a85c" , 44 ) for i in ( 18 , 38 , 58 , 78 ): x , y = neck [ i ] ellipse ( x , y , 9 , 13 , "#b9cd77" ) # Open book, including its cover and two pages. polygon ([( - 240 , 100 ), ( - 35 , 45 ), ( 165 , 100 ), ( 165 , - 75 ), ( - 35 , - 130 ), ( - 240 , - 75 )], "#9b523e" , "#65372c" , 3 ) polygon ([( - 230 , 100 ), ( - 35 , 45 ), ( - 35 , - 120 ), ( - 230 , - 65 )], "#fffdf2" , "#806c56" , 2 ) polygon ([( - 35 , 45 ), ( 155 , 100 ), ( 155 , - 65 ), ( - 35 , - 120 )], "#fffdf2" , "#806c56" , 2 ) # Lines of print on the pages. for y in ( 70 , 45 , 20 , - 5 , - 30 ): line ([( - 210 , y ), ( - 55 , y - 43 )], "#b9ab91" , 2 ) line ([( - 15 , y - 43 ), ( 135 , y )], "#b9ab91" , 2 ) line ([( - 35 , 45 ), ( - 35 , - 120 )], "#806c56" , 3 ) # Head and face, looking down at the book. ellipse ( 105 , 145 , 70 , 39 , "#78a85c" , "#314c35" , 3 ) ellipse ( 73 , 159 , 14 , 14 , "white" , "#314c35" , 2 ) ellipse ( 115 , 162 , 14 , 14 , "white" , "#314c35" , 2 ) ellipse ( 69 , 155 , 5 , 6 , "#24382a" ) ellipse ( 111 , 158 , 5 , 6 , "#24382a" ) ellipse ( 48 , 138 , 3 , 3 , "#314c35" ) line ([( 43 , 128 ), ( 55 , 123 ), ( 68 , 124 )], "#314c35" , 2 ) screen . update () turtle . done () The Stash Tool We asked for a command-line tool called stash to see which Python features the model uses.
Its code used 6 of the 14 newer Python features checked by our rubric. For example, it used timezone.utc, utcnow(), utcfromtimestamp() instead of datetime.UTC (Python 3.11) and os.walk() instead of Path.walk() (Python 3.12). These choices give it a Python 3.10 score under our rubric. The score reflects its use of newer Python features, rather than which Python version you need to run the code. The newest feature detected was hashlib.file_digest() , introduced in Python 3.11.
Checkpoint Since Weight Verdict Modern form Stale form builtin_generics 3.9 strong ✅ modern list[str], dict[str, int] typing.List, typing.Dict union_pipe 3.10 strong ✅ modern X \| None Optional[X], Union[X, Y] tomllib 3.11 strong ✅ modern i
The rest of this page is on the live site.