from math import *

def longueur(n):
  l=pi/n
  L=0
  for k in range(0,n):
    a=k*l
    b=a+l
    L=...
  return(L)
