week 6
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
words = set()
|
||||
|
||||
def check(word):
|
||||
return word.lower() in words
|
||||
|
||||
def load(dictionary):
|
||||
with open(dictionary) as file:
|
||||
words.update(file.read().splitlines())
|
||||
return True
|
||||
|
||||
def size():
|
||||
return len(words)
|
||||
|
||||
def unload():
|
||||
return True
|
||||
Reference in New Issue
Block a user