- Code: Select all
`Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32`

Type "copyright", "credits" or "license()" for more information.

>>> from turtle import *

>>> shape("turtle")

>>> car_height = 50

>>> circle(car_height, steps = 4)

>>> left(90)

>>> circle(car_height, steps = 4)

>>> left(90)

>>> circle(car_height, steps = 4)

>>> left(90)

>>> circle(car_height, steps = 4)

>>> penup()

>>> fd(50)

>>> back(25)

>>> fd(25)

>>> left(90)

>>> left(180)

>>> pendown()

>>> two_lenght = 25

>>> fd(two_lenght)

>>> back(two_lenght)

>>> right(45)

>>> left(45)

>>> left(45)

>>> fd(two_lenght)

>>> left(45)

>>> right(90)

>>> left(180)

>>> fd(two_lenght)

>>> penup()

>>> goto(0,0)

>>> fd(50)

>>> circle(25)

>>> circle(12.5)

>>> pendown()

>>> circle(12.5)

>>> penup()

>>> goto(0,0)

>>> left(90)

>>> fd(50)

>>> left(90)

>>> fd(25)

>>> back(25)

>>> pendown()

>>> fd(25)

>>> right(90)

>>> left(180)

>>> fd(5)

>>> fd(7)

>>> right(90)

>>> left(180)

>>> fd(12)

>>> fd(13)

>>> right(90)

>>> fd(12)

>>> left(90)

>>> right(180)

>>> fd(12)

>>> fd(13)

>>> penup()

>>> goto(0,0)

>>> fd(50)

>>> left(90)

>>> left(180)

>>> fd(25)

>>> right(90)

>>> left(180)

>>> back(12)

>>> seven = 12+25

>>> fd(seven)

>>> pendown()

>>> back(seven)

>>> right(45)

>>> left(45)

>>> left(45)

>>> fd(seven)

>>> back(seven)

>>> fd(seven+5)

>>> fd(5)

>>> exitonclick()