human
Direction at last square block | Function which tells the Current direction.
Driver code"
How can the above be solved in Python?
 ... Give me a code to direction at last square block and the other steps required?
assistant
#Here is code to direction at last square block and the other steps required.
 def direction ( R , C ) :
	if ( R != C and R % 2 == 0 and C % 2 != 0 and R < C ) :
		print ( " Left " )
		return
	if ( R != C and R % 2 == 0 and C % 2 == 0 and R > C ) :
		print ( " Up " )
		return
	if R == C and R % 2 != 0 and C % 2 != 0 :
		print ( " Right " )
		return
	if R == C and R % 2 == 0 and C % 2 == 0 :
		print ( " Left " )
		return
	if ( R != C and R % 2 != 0 and C % 2 != 0 and R < C ) :
		print ( " Right " )
		return
	if ( R != C and R % 2 != 0 and C % 2 != 0 and R > C ) :
		print ( " Down " )
		return
	if ( R != C and R % 2 == 0 and C % 2 != 0 and R < C ) :
		print ( " Left " )
		return
	if ( R != C and R % 2 == 0 and C % 2 == 0 and R > C ) :
		print ( " Up " )
		return
	if ( R != C and R % 2 != 0 and C % 2 != 0 and R > C ) :
		print ( " Down " )
		return
	if ( R != C and R % 2 != 0 and C % 2 != 0 and R < C ) :
		print ( " Right " )
		return
R = 3 ; C = 1
direction ( R , C )