This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A very stupid Word Unjumbler. V2. | |
Author: BugBrekr | |
Date: 23/07/2024 | |
Requires words_alpha.txt. | |
Available at: https://github.com/dwyl/english-words/blob/master/words_alpha.txt | |
""" | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import time | |
import webbrowser | |
WORDS_FILE = 'words_alpha.txt' | |
num_words = sum(1 for line in open(WORDS_FILE)) | |
def permutation(lst): | |
if len(lst) == 0: | |
return [] | |
if len(lst) == 1: | |
return [lst] |