Python membuat program yang berjalan melalui semua kombinasi yang mungkin
from itertools import combinations
lst = ["a" ,"b", "c"]
lengthOfStrings = 3
for i in combinations(lst, lengthOfStrings):
print(i)
YYY