What does the doctest module do in Python?
Correct answer
D. Runs examples embedded in docstrings
6 views
D. Runs examples embedded in docstrings
6 views
doctest executes >>> examples in docstrings and compares output.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is D? Ask here and get an explanation.