I would like to give some feedback about ...
From: https://py.checkio.org/mission/index-power/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
Hello! I had solve:
def index_power(array, n):
if 0<= n <= len(array):
return array[n] ** n
if n >= len(array):
return -1
In PyCharm my solve is true, but your test show me error
Created at: 2016/12/02 09:29; Updated at: 2016/12/02 09:33
The question is resolved.