Light Mode
Dark Mode
is the second assert is wrong ?

Hello,

sorry if my english isn't good. this my code

import math
def index_power(array, n):
    if(n in array):
        return int(math.pow(array[n],n))
    else:
        return -1

i don't understand. My code work correctly in the terminal. Thank you for your help.

Created: April 16, 2016, 11:24 a.m.
Updated: April 16, 2016, 3:41 p.m.
0
12
User avatar
nolem