from turtle import * from random import randint speed(100) colormode(255) def functionOFun(): for i in range(360): forward(100) right(30) forward(20) left(60) forward(50) right(40) forward(50) left(50) forward(40) right(60) forward(40) left(30) forward(50) right(10) penup() setposition(0,0) pendown() right(1) pencolor((randint(0,255),randint(0,255),randint(0,255))) functionOFun()