Light Mode
Dark Mode
I think this is a bug in the last extra test

index_power([75,68,35,61,9,36,89,0,30],10)

There is no 10 index in the list, so -1 is returned. Under the conditions, we raise -1 to the power of 10 and get 1. But the check gives an error and says that it should be -1.

I checked on the calculator and this should be 1.

Created: Feb. 8, 2018, 1 p.m.
Updated: Feb. 9, 2018, 6:12 a.m.
0
11
User avatar
Antikuz