There is a list
[[-0.56, 0.08], [-0.54, 0.09], [-0.52, 0.1], [-0.5, 0.11]] All values in it float
There is a function
def Area(list1): s = 0 for i in list1: s += (list1[i][0])*(list1[i+1][1]) - (list1[i+1][0])*(list1[i][1]) return s But she does not want to work with sub-lists at all, gives out
TypeError: list indices must be integers, not list How to solve or get around? Moreover, this problem is observed only during the cycle.