#Polygones #Par Town Ground (anciennement Igor Gorovitch) print("""Ne fermez jamais la fenêtre graphique qui va s'ouvrir Pour terminer ce programme fermez cette console texte ou Entrez un caractère avant de taper [Enter] en fin de dessin.""") print("") from turtle import * from math import pi from math import sin from math import cos reponse="" while reponse=="": rayon=input("""Rayon du cercle (maximum 300) ? """) rayon=int(rayon) #Centrage approximatif de la figure x=rayon y=0 e=input("Épaisseur de trait ? ") e=int(e) nc=input("""Nombre de côtés du polygone ? """) nc=int(nc) #Calcul de l'angle en radians angle=2*pi/nc reset() color("blue") a=0 up() goto(x,y) down() width(e) left(90) compteur=int(0) while compteur