import turtle

def draw_shape (lados, comprimento, cor):
    turtle.color(cor)
    angulo = 360 / lados
    turtle.begin_fill()
    for i in range(lados):
        turtle.forward(comprimento)
        turtle.right(angulo)
    turtle.end_fill()

draw_shape(3, 80, "red")

turtle.right(90)

draw_shape(4, 80, "blue")

turtle.mainloop()
223c14aebb251d1de8d7e29fb3d13e50588f8c91
<mask token>

<mask token>


def draw_shape(lados, comprimento, cor):
    turtle.color(cor)
    angulo = 360 / lados
    turtle.begin_fill()
    for i in range(lados):
        turtle.forward(comprimento)
        turtle.right(angulo)
    turtle.end_fill()


<mask token>

<mask token>


def draw_shape(lados, comprimento, cor):
    turtle.color(cor)
    angulo = 360 / lados
    turtle.begin_fill()
    for i in range(lados):
        turtle.forward(comprimento)
        turtle.right(angulo)
    turtle.end_fill()


draw_shape(3, 80, 'red')
turtle.right(90)
draw_shape(4, 80, 'blue')
turtle.mainloop()

import turtle


def draw_shape(lados, comprimento, cor):
    turtle.color(cor)
    angulo = 360 / lados
    turtle.begin_fill()
    for i in range(lados):
        turtle.forward(comprimento)
        turtle.right(angulo)
    turtle.end_fill()


draw_shape(3, 80, 'red')
turtle.right(90)
draw_shape(4, 80, 'blue')
turtle.mainloop()

import turtle

def draw_shape (lados, comprimento, cor):
    turtle.color(cor)
    angulo = 360 / lados
    turtle.begin_fill()
    for i in range(lados):
        turtle.forward(comprimento)
        turtle.right(angulo)
    turtle.end_fill()

draw_shape(3, 80, "red")

turtle.right(90)

draw_shape(4, 80, "blue")

turtle.mainloop()