Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Area of a Convex Polygon by TovarischZhukov
def checkio(data):
retval = []
for i, val in enumerate(data):
k=i+1 if i+1 < len(data) else 0
retval.append(val[0]*(data[k][1] - data[-1+i][1]))
return abs(sum(retval))/2.0
Dec. 25, 2015