my code is running correctly in python compiler but it is not validating here.
CODE : -
array=input ('enter array : ' )
n=input ('enter index : ')
def index_array (a,n):
if (n>len(array)-1) :
print (-1)
else :
print array[n]**n
index_array(array,n)
Created at: 2015/01/25 18:03; Updated at: 2016/07/06 15:05