def setVariable(var, lenght):
    """
    Creates set of values defined in 'var' of lenght 'lenght' by doing cylcing (modulo operation) 
    Example
        var = [1, 2, 3], lenght=5, return [1, 2, 3, 1, 2]
    """
    nvar = []
    l = len(var)
    for i in range(lenght):
        nvar.append(var[i % l])
    return nvar