def bigger(l, num):
    _ret = []
for i, var in enumerate(l[1:], start=1):
    if var - l[i - 1] >= num:
        _ret.append(i)
return _ret
How to print out the indexes in a list with repetitive elements