def combinations_colors(l, n):
    from itertools import combinations_with_replacement 
    
    return list(combinations_with_replacement(l,n))
def combinations_colors(D, n):
    from itertools import combinations_with_replacement
   
    return list(combinations_with_replacement(D, n))