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