title: Creating a polygon in Python
body: <p>I'm generating random coordinates in Python for each of the vertex as follows:  </p>
  
  <pre><code>n = 10
  V = []
  V=range(n) #vertices
  
  random.seed(1)
  points = []
  
  for i in V:
      x = random.randint(0,50)
      y = random.randint(0,50)
      points.append((x,y))
  </code></pre>
  
  <p>I need to create a closed polygon using these vertices. Can someone please provide me a suggestion for this?</p>