def myrange(N, indi, indf):
    """
Return 'range(N)' with index 'indi' at position 'indf'
    """
    lis = list(range(N))
    if indi < indf:
        deb = lis[:indi] + lis[indi + 1:indf + 1]
        end = lis[indf + 1:]
        eli = [lis[indi]]
        lis = deb + eli + end
    elif indi > indf:
        deb = lis[:indf]
        end = lis[indf:indi] + lis[indi + 1:]
        eli = [lis[indi]]
        lis = deb + eli + end
    return lis
