Untitled

 avatar
unknown
plain_text
2 years ago
234 B
4
Indexable
from turtle import *

def dessinePolygone(nbCotes, lng, posBas=(0,0), couleur = "blue"):
    color(couleur)
    penup()
    goto(posBas)
    pendown()
    for y in range(nbCotes): 
        forward(lng)
        left(int(360 / nbCotes))
Editor is loading...