Guest User

Untitled

a guest
Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def circumference(pList):
  2.     n=len(pList)
  3.     lengde=0
  4.     for i in range(0,n,2):
  5.         x1=pList[i]
  6.         y1=pList[i+1]
  7.         x2=pList[(i+2)%n]
  8.         y2=pList[(i+3)%n]
  9.         lengde+=edgeLength(x1,y1,x2,y2)
  10.     return lengde
Add Comment
Please, Sign In to add comment