human
Write a function to calculate the value of 'a' to the power 'b'. Here is a solution in Python:
=====
Write me a Python code to calculate the value of 'a' to the power 'b'?
assistant
#Here is Python code to calculate the value of 'a' to the power 'b'.
 def power(a,b):
	if b==0:
		return 1
	elif a==0:
		return 0
	elif b==1:
		return a
	else:
		return a*power(a,b-1)