Light Mode
Dark Mode
code is not running

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: Jan. 25, 2015, 6:03 p.m.
Updated: July 6, 2016, 3:05 p.m.
1
4
User avatar
abhi.iitdmnc