basically I missed school during a year for personal reasons, so now we're doing python and I have little to no idea of what's going on. I did understand the basics of functions, but now I need to solve this code: The second part of the code is what I don't understand.
def determinant(x1,y1,x2,y2)
return x1*y2-y1*x2
def alignement(xA,yA,xB,yB,xC,yC):
x1,y1=xB-xA,yB-yA
x2,y2=xC-xA,yC-yA
if determinant(x1,y1,x2,y2)==0:
return True
else:
return False