human
Check if three straight lines are concurrent or not | Return true if three line are concurrent , else false ..
Driven Program"
How can the above be solved in Python?

What is a code to check if three straight lines are concurrent or not and the other steps required?
assistant
#Here is code to check if three straight lines are concurrent or not and the other steps required.
 def checkConcurrent ( a1 , b1 , c1 , a2 , b2 , c2 , a3 , b3 , c3 ) :
	return ( a3 * ( b1 * c2 - b2 * c1 ) + b3 * ( c1 * a2 - c2 * a1 ) + c3 * ( a1 * b2 - a2 * b1 ) == 0 )
a1 = 2
b1 = - 3
c1 = 5
a2 = 3
b2 = 4
c2 = - 7
a3 = 9
b3 = - 5
c3 = 8
if ( checkConcurrent ( a1 , b1 , c1 , a2 , b2 , c2 , a3 , b3 , c3 ) ) :
	print ( " Yes " )
else :
	print ( " No " )