def linear_session_score(i, length):
    """Newest elements in sequence => largest weights.

    Parameters
    ----------
    i : int
        Element position, i+1 must be less than length.

    length : int
             Length of a sequence.

    Results
    -------
    result : float
             Session rank between 0 and 1.
    """

    result = (i + 1) / length
    return result