in Python by
Q:
A sample module named sample_module.py contained the following contents.

def mul(x, y):

    """Multiplies two given numbers and returns the product.

    >>> mul(6, 7)

    42

    >>> mul(-8, 7)

    -56

    """

    return x * y

What is the expected output when you run the doctests using below command?

python -m doctest sample_module.py

Output stating 1 test passed

Output stating 2 tests passed

No output

Output stating 1 failure

1 Answer

0 votes
by
Ans is

No output
Click here to read more about Python
Click here to read more about Insurance

Related questions

+1 vote
asked Jul 16, 2020 in Python by GeorgeBell
0 votes
asked Jul 2, 2020 in Python by GeorgeBell
0 votes
asked Jul 10, 2020 in Python by GeorgeBell
0 votes
asked Jul 2, 2020 in Python by GeorgeBell
0 votes
asked May 17, 2019 in Python by Derya
...