Commit 16276f93 authored by Adam Blank's avatar Adam Blank
Browse files

autocommit

parent 5d7d3554
No related merge requests found
Showing with 8 additions and 4 deletions
+8 -4
......@@ -4,15 +4,19 @@ from io import TextIOWrapper
def get_words() -> list[str]:
words: list[str] = []
f: TextIOWrapper = open('06/dictionary.txt')
for word in f.readlines():
word = word.strip()
words.append(word)
for line in f.readlines():
line = line.strip()
words.append(line)
f.close()
return words
def get_wordle_words() -> list[str]:
...
wordle_words: list[str] = []
for word in get_words():
if len(word) == 5:
wordle_words.append(word)
return wordle_words
WORDLE_WORDS: list[str] = get_wordle_words()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment