human
Program to check if the points are parallel to X axis or Y axis | To check for parallel line.
checking for parallel to X and Y axis condition.
To display the output.
Driver 's Code"
How can the above be solved in Python?

=====
Can you provide a code to program to check if the points are parallel to X axis or Y axis and the other steps required?
assistant
#Here is code to program to check if the points are parallel to X axis or Y axis and the other steps required.
 def parallel ( n , a ) :
	x = True ;
	y = True ;
	for i in range ( n - 1 ) :
		if ( a [ i ] [ 0 ] != a [ i + 1 ] [ 0 ] ) :
			x = False ;
		if ( a [ i ] [ 1 ] != a [ i + 1 ] [ 1 ] ) :
			y = False ;
	if ( x ) :
		print ( " Parallel ▁ to ▁ Y ▁ Axis " ) ;
	elif ( y ) :
		print ( " Parallel ▁ to ▁ X ▁ Axis " ) ;
	else :
		print ( " Not ▁ Parallel ▁ to ▁ X ▁ and ▁ Y ▁ Axis " ) ;
a = [ [ 1 , 2 ] , [ 1 , 4 ] , [ 1 , 6 ] , [ 1 , 0 ] ] ;
n = len ( a ) ;
parallel ( n , a ) ;