human
Write a program to calculate pow ( x , n ) | Python3 program for the above approach.
If x ^ 0 return 1.
If we need to find of 0 ^ y.
For all other cases.
Driver Code"
Solution in Python:
assistant
#Here is code to write a program to calculate pow ( x , n ) and the other steps required.
 def power ( x , y ) :
	if ( y == 0 ) :
		return 1
	if ( x == 0 ) :
		return 0
	return x * power ( x , y - 1 )
x = 2
y = 3
print ( power ( x , y ) )