import turtle import time turtle.pensize(2) turtle.pencolor("black") turtle.fillcolor("red") turtle.begin_fill() for _ in range(5): turtle.forward(200) turtle.right(144) turtle.end_fill() time.sleep(1)
import turtle turtle.penup() turtle.pensize(2) turtle.pencolor("blue") turtle.fd(90) turtle.seth(30) turtle.pendown() turtle.fd(90) turtle.seth(-90) turtle.fd(90) turtle.seth(150) turtle.fd(90) turtle.penup() turtle.seth(30) turtle.fd(30) turtle.seth(90) turtle.fd(30) turtle.pendown() turtle.seth(-30) turtle.fd(90) turtle.seth(-150) turtle.fd(90) turtle.seth(90) turtle.fd(90) turtle.done()
import turtle turtle.pendown() turtle.pensize(4) turtle.pencolor("gold") turtle.fd(60) turtle.seth(120) turtle.pencolor("green") turtle.fd(60) turtle.seth(-120) turtle.pencolor("blue") turtle.fd(120) turtle.seth(0) turtle.pencolor("red") turtle.fd(120) turtle.seth(120) turtle.pencolor("green") turtle.fd(60) turtle.seth(-120) turtle.pencolor("silver") turtle.fd(60) turtle.seth(120) turtle.pencolor("orange") turtle.fd(60) turtle.penup() turtle.seth(0) turtle.done()