human
Write me a code to square root of a number by Repeated Subtraction method and the other steps required given the following:
Square root of a number by Repeated Subtraction method | Function to return the square root of the given number.
Subtract n - th odd number.
Return the result.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to square root of a number by Repeated Subtraction method and the other steps required.
 def SquareRoot ( num ) :
	count = 0
	for n in range ( 1 , num + 1 , 2 ) :
		num = num - n
		count = count + 1
		if ( num == 0 ) :
			break
	return count
N = 81
print ( SquareRoot ( N ) )