Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Index Power by Taca
def index_power(array, n):
"""
Find Nth power of the element with index N.
"""
return array[n]**n if len(array) > n else -1
Feb. 18, 2016
Comments: