• is the second assert is wrong ?

Question related to mission Index Power

 

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.

12