python///TypeError: unsupported operand type(s) for -: 'list' and 'list' ,i write the code and i get this massege
The problem is x[0] etc are resulting in a 1D list. You need to extract element from 1D list.. below works (I used index 0 element)

area = x[0][0] * (y[1][0] - y[b][0]) + x[b][0] * (y[0][0] - y[b-1][0])