- well, shortly before I ran out of time, I noticed that my results are different - so I would take care of capitalization (
.lower()
) and punctuation ("
,)
,,
, etc.) - optimize for big files (don't load all the words in the memory into the list, use generator instead)
- refactor the code, add docstrings, run
mypy
checker and write unit tests that would check if the output matches the expected result (3 - result.txt
)
This file contains 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
["setup.cfg".flake8] | |
show-source = true | |
max-line-length = 88 | |
ignore = "D100,D104,D401,RST303,RST304,DAR103,DAR203" | |
["setup.cfg".isort] | |
multi_line_output = 3 | |
include_trailing_comma = true | |
force_grid_wrap = 0 | |
use_parentheses = true |