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