human
Check whether jigsaw puzzle solveable or not | Function to check if the jigsaw Puzzle is solveable or not.
Base Case.
By placing the blank tabs as a chain.
Driver Code"
How can the above be solved in Python?

What is a code to check whether jigsaw puzzle solveable or not and the other steps required?
assistant
#Here is code to check whether jigsaw puzzle solveable or not and the other steps required.
 def checkSolveable ( n , m ) :
	if n == 1 or m == 1 :
		print ( " YES " )
	elif m == 2 and n == 2 :
		print ( " YES " )
	else :
		print ( " NO " )
if __name__ == " _ _ main _ _ " :
	n = 1
	m = 3
	checkSolveable ( n , m )