Horje
What is the correct way to write a doctest? Code Example
What is the correct way to write a doctest?
Q: What is the correct way to write a doctest?
Answer:
def sum(a, b):
    """
    >>> sum(4, 3)
    7

    >>> sum(-4, 5)
    1
    """
    return a + b




Whatever

Related
doge coin Code Example doge coin Code Example
visual studio 2019 nuget online package not found Code Example visual studio 2019 nuget online package not found Code Example
on click certain field frappe Code Example on click certain field frappe Code Example
code is code that can be inserted directly into a .rmd file. Code Example code is code that can be inserted directly into a .rmd file. Code Example
uart reset in tm4c Code Example uart reset in tm4c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8