def k_min(l, k):
    """
    Gets the k smallest elements in a list and their indices.
    """
    enum_l = list(enumerate(l))
    l_s = sorted(enum_l, key=lambda v: v[1])
    k_mins = l_s[:k]
    return tuple(map(list, zip(*k_mins)))