Skip to content

Commit 687ecf9

Browse files
Merge pull request #2768 from avinashkranjan/deepsource-transform-197e21fd
format code with autopep8
2 parents 606969c + 294d544 commit 687ecf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Anagram Finder/anagram_finder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from nltk.corpus import words
12
import nltk
23
nltk.download('words')
3-
from nltk.corpus import words
4+
45

56
def find_anagrams(search_words, word_list):
67
# Function to sort letters in a word and return it as a string
@@ -30,6 +31,7 @@ def sort_word(word):
3031

3132
return results
3233

34+
3335
if __name__ == "__main__":
3436
# Retrieve the NLTK word list
3537
nltk_word_list = words.words()

0 commit comments

Comments
 (0)