human
Check if a line passes through the origin | Python program to find if line passing through two coordinates also passes through origin or not.
Driver code"
Solution in Python:
assistant
#Here is code to check if a line passes through the origin and the other steps required.
 def checkOrigin ( x1 , y1 , x2 , y2 ) :
	return ( x1 * ( y2 - y1 ) == y1 * ( x2 - x1 ) )
if ( checkOrigin ( 1 , 28 , 2 , 56 ) == True ) :
	print ( " Yes " )
else :
	print ( " No " )