def fibonacci (nth):
    """
    Calculate the nth term of the Fibonacci series

    Parameters - nth (integer) - the term to calculate

    Return - (integer) - the nth term
    """
    if nth <= 2:
        return 1 if nth > 0 else 0
    else:
        return fibonacci(nth - 2) + fibonacci(nth - 1)