Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Index Power by Aviumy
def index_power(array: list, n: int) -> int:
try:
return array[n] ** n
except IndexError:
return -1
Feb. 22, 2020