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

Making GUI Calculator in Tkinter Python

Unlocking Web Design: A Guide to Mastering CSS Layout Modes