human
Check whether two points ( x1 , y1 ) and ( x2 , y2 ) lie on same side of a given line or not | Function to check if two points lie on the same side or not.
fx1 = 0 Variable to store a * x1 + b * y1 - c fx2 = 0 Variable to store a * x2 + b * y2 - c.
If fx1 and fx2 have same sign.
Driver code"
How can the above be solved in Python?

Write me a code to check whether two points ( x1 , y1 ) and ( x2 , y2 ) lie on same side of a given line or not and the other steps required?
assistant
#Here is code to check whether two points ( x1 , y1 ) and ( x2 , y2 ) lie on same side of a given line or not and the other steps required.
 def pointsAreOnSameSideOfLine ( a , b , c , x1 , y1 , x2 , y2 ) :
	fx1 = a * x1 + b * y1 - c
	fx2 = a * x2 + b * y2 - c
	if ( ( fx1 * fx2 ) > 0 ) :
		return True
	return False
a , b , c = 1 , 1 , 1
x1 , y1 = 1 , 1
x2 , y2 = 2 , 1
if ( pointsAreOnSameSideOfLine ( a , b , c , x1 , y1 , x2 , y2 ) ) :
	print ( " Yes " )
else :
	print ( " No " )