human
Find the final co | Function to print the final position of the point after traversing through the given directions.
Traversing through the given directions.
If its north or south the point will move left or right.
If its west or east the point will move upwards or downwards.
Returning the final position.
Driver Code"
Solution in Python:

=====
Give me a code to find the final co and the other steps required?
assistant
#Here is code to find the final co and the other steps required.
 def finalCoordinates ( SX , SY , D ) :
	for i in range ( len ( D ) ) :
		if ( D [ i ] == ' N ' ) :
			SY += 1
		elif ( D [ i ] == ' S ' ) :
			SY -= 1
		elif ( D [ i ] == ' E ' ) :
			SX += 1
		else :
			SX -= 1
	ans = ' ( ' + str ( SX ) + ' , ' + str ( SY ) + ' ) '
	print ( ans )
if __name__ == ' _ _ main _ _ ' :
	SX , SY = 2 , 2
	D = " NSSE "
	finalCoordinates ( SX , SY , D )