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