one-liner solution in Creative category for Index Power by chocobo1355
index_power = lambda n,pow: n[pow]**pow if len(n)>pow else -1
Oct. 27, 2016