Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
234 B
2
Indexable
Never
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))