First solution in Clear category for Index Power by alwayswannafly
def index_power(array, n): return array[n] ** n if len(array) > n else -1
Nov. 30, 2016