human
Check whether two straight lines are parallel or not | Function to check if two lines are parallel or not.
If slopes are equal.
Driver Code.
Function Call"
Solution in Python:
 Write me a code to check whether two straight lines are parallel or not and the other steps required?
assistant
#Here is code to check whether two straight lines are parallel or not and the other steps required.
 def parallel ( a1 , b1 , c1 , a2 , b2 , c2 ) :
	if ( ( - ( a1 / b1 ) ) == ( - ( a2 / b2 ) ) ) :
		print ( " Yes " ) ;
	else :
		print ( " No " ) ;
if __name__ == ' _ _ main _ _ ' :
	a1 = - 2 ; b1 = 4 ; c1 = 5 ;
	a2 = - 6 ; b2 = 12 ; c2 = 6 ;
	parallel ( a1 , b1 , c1 , a2 , b2 , c2 ) ;