def indices(value, lst):
    """
    Finds the indices of all occurrences of value in lst.
    >>> indices(0, [0,1])
    [0]
    >>> indices(0, [0,1,0])
    [0,2]
    >>> indices(0, [1,2])
    []
    """
    _indices = []
    for i, v in enumerate(lst):
        if v == value:
            _indices.append(i)
    return _indices