Q: Python Turtle not filling as per documentation example I'm trying to show my daughter some code and thought turtle would be fun. I'm more of a numbers guy, but that's not much fun for kids. 
I'm having trouble reproducing the documentation example. This is more just bothering me because I can't figure it out. There's lots of other stuff we can do. 
The documentation example (copied below) is supposed to produce this picture. 
from turtle import *
color('red', 'yellow')
begin_fill()
while True:
    forward(200)
    left(170)
    if abs(pos()) < 1:
        break
end_fill()
done()

That example won't run, but I modify the imports and calls slightly to allow it run. However, the fill doesn't work the same way. It fills in the entire shape - not leaving those gaps. This is more what I'd expect from the fill documentation about polygon start and end. But, any ideas? 
from turtle import *

win = Screen()
t = Turtle()
t.color('red', 'yellow')
t.speed(0)
t.begin_fill()
while True:
    t.forward(200)
    t.left(170)
    if abs(t.pos()) < 1:
        break
t.end_fill()
win.exitonclick()


