One line solution in Clear category for Index Power by belokr
index_power = lambda array, n: array[n]**n if len(array) > n else -1
Feb. 20, 2020