def polygon(sides, radius=1, rotation=0, translation=None):
    one_segment = math.pi * 2 / sides
points = [(math.sin(one_segment * i + rotation) * radius, math.cos(
    one_segment * i + rotation) * radius) for i in range(sides)]
if translation:
    pass
Drawing polygon with n number of sides in Python 3.2