# print "hello wrold" """ from turtle import * def triangle(): for i in range(3): forward(100) right(120) triangle() right(90) triangle() """ from turtle import * speed(10) def triangle(length): for i in range(3): forward(length) right(120) def square(length): for i in range(4): forward(length) right(90) def polygon(n, length): for i in range(n): forward(length) right(360.0 / n) def diamant(n, length): for i in range(n): polygon(n, length) right(360.0 / n) triangle(100) right(90) square(50) right(30) polygon(7, 70) right(30) penup() forward(200) pendown() diamant(12, 30) done()