7 Answers
New AnswerCan be quite complex. Are there any further rules, e.g. just all possible permutations of a word or does the output have to be some other existing word or phrase? Sorry just re-read the post and found the answers.
Basically you could permutate the word as input and convert the data from the file as dict or list and check if the permutations are in the list, creating a new sorted list (will be alphabetical).
Look into the source codes, there are examples for permutations and anagram testing
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message