Check Your Test With a Text File
Let's test our text file and see how it works.
We'll cover the following...
The doctest
module also allows us to write interactive examples to a text file using ReStructuredText, which is a common mark-up language.
Let’s create a really simple example. Create the following file and name it add.txt
:
Access this course and 1400+ top-rated courses and projects.