<filename>python/8kyu/n-th_power.py<gh_stars>1-10
"""Kata url: https://www.codewars.com/kata/57d814e4950d8489720008db."""

from typing import List


def index(array: List[int], n: int) -> int:
    return array[n] ** n if (len(array) > n) else -1

<filename>python/8kyu/n-th_power.py<gh_stars>1-10
"""Kata url: https://www.codewars.com/kata/57d814e4950d8489720008db."""

from typing import List


def index(array: List[int], n: int) -> int:
    return array[n] ** n if (len(array) > n) else -1

Kata url: https://www.codewars.com/kata/57d814e4950d8489720008db.