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
def parallel ( a1 , b1 , c1 , a2 , b2 , c2 ) : NEW_LINE INDENT if ( ( - ( a1 / b1 ) ) == ( - ( a2 / b2 ) ) ) : NEW_LINE INDENT print ( " Yes " ) ; NEW_LINE DEDENT else : NEW_LINE INDENT print ( " No " ) ; NEW_LINE DEDENT DEDENT if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT a1 = - 2 ; b1 = 4 ; c1 = 5 ; NEW_LINE a2 = - 6 ; b2 = 12 ; c2 = 6 ; NEW_LINE parallel ( a1 , b1 , c1 , a2 , b2 , c2 ) ; NEW_LINE DEDENT