def gen_tuples_for_loops(range_len: int, limit: int) -> list:
    """ generate a list of tuples of range borders like [(0,...,100), (100,...,200), ..., ( ...,limit)]
    It is supposed that the tuples will be used in a loop "for"
    """
    ranges = [(n * range_len, (n + 1) * range_len) for n in range(limit // range_len)]
    if limit % range_len > 0:
        ranges.append((range_len * (limit // range_len), limit))
    return ranges