How can I make it better?
Afternoon. I have completed Learn Python The Hard Way all the way up to classes but I decided before continuing that I should try to cement the skills I have. But I'm already really struggling with the elementary tasks here (Using all the hints, looking up how things work). So, if I do come upon a solution I want to put it in the discuss section to see if any improvements could be made to it.
Here is my solution to "Index power".
if n < len(array): return array[n] ** n else: return -1