Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Index Power by Chramar
def index_power(array, n):
if n > (len(array)-1):
return -1
else:
return (array[n]**n)
Oct. 14, 2016
Comments: