def get_index_of_smallest(L, i):
    """Return the index of the smallest element of L.

    Args:
        L (list): List we want to analyse.
        i (int): Index from where we want to start.

    Returns:
        int: Index of smallest element of L.
    """

    # The index of the smallest item so far
    index_of_smallest = i
    end = len(L)

    for j in range(i + 1, end):
        if L[j] < L[index_of_smallest]:
            index_of_smallest = j

    return index_of_smallest