DOCSTRING gives info about a function

 How to print docstring?

def prdct(n1, n2):
    """This function gives product of two nums."""
    result = n1*n2
    print(result)
   
print(prdct.__doc__)



Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

What is the difference between iostream and iostream.h in cpp?

The Basic Structure of a Full-Stack Web App