Sep-15-2020, 06:05 PM
hello. i need advice for an simple problem.
i am greatful for your help
Br Marre
with open("clusters.csv", "r") as data_file: all_words = [] for line in data_file.readlines(): for word in line.split("'. "): all_words.append(word.lower()) unique_words = set(all_words) xlen = len(unique_words) #print xlen xlist = list(unique_words) for i in range(xlen): print xlist[i] # i get the result: (173, 151, 68) ; 1 (255, 230, 191) ; 1 (103, 88, 31) ; 1 (14, 15, 0) ; 1 (48, 45, 19) ; 1 # i want the result to bee (173, 151, 68) (255, 230, 191) (103, 88, 31) (14, 15, 0) (48, 45, 19)to use it as a variabel value
i am greatful for your help
Br Marre