Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One line solution solution in Clear category for Index Power by bsquare
def index_power(array, n):
return -1 if n > len(array) - 1 else array[n] ** n
Sept. 18, 2019
Comments: