There are 3 arrangements of the word DAD, namely DAD, ADD, and DDA. How many arrangements are there of the word ENDURINGLY?
w = "ENDURINGLY" import itertools w = "ENDURINGLY" combinations = set(itertools.permutations(w)) print(f"{w} have {len(combinations)} arrangements ")
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments