Files
CS50---Harvard/Python/dictionary.py
T
2026-06-07 17:56:47 +00:00

19 lines
267 B
Python

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