Skip to content

Python code snippet – How to make turtle shape image smaller?

from turtle import *
color('red', 'yellow')
var = 100

begin_fill()
while True:
    forward(var)
    left(170)
    if abs(pos()) < 1:
        break
end_fill()

done()
See also  Python code snippet - How to add text to a string ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.