0

help string permutation

https://sololearn.com/compiler-playground/cTHLRAnirS6N/?ref=app so i have this code and its outputting dog, odg, ogd, dgo, gdo, god but i need it to input dog, dgo, odg, ogd, gdo, god can someone help me figure out what to tweak thx

19th Oct 2025, 1:23 AM
AcnkKRuv5A
2 Respuestas
+ 1
Just swap the two for loops: for index in range(len(aSet)): for permutation in partial: https://sololearn.com/compiler-playground/cQI9xhD23mAH/?ref=app
19th Oct 2025, 2:05 AM
BroFar
BroFar - avatar