Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Intuitive solution solution in Clear category for Index Power by nakanohito_piyo
def index_power(array, n):
try:
return array[n]**n
except IndexError:
return -1
June 26, 2015