python doctest syntax code example
Example: how to write a python doctest
def a_function(*args):
'''
>>>an input
expected output
'''
if this:
return that
# A doctest may also include a docstring
def a_function(*args):
'''
>>>an input
expected output
'''
if this:
return that
# A doctest may also include a docstring