I'm fairly new to python. I know docstrings are used for documentation and I can use help() to call them. My question is, when I write my own function in a .py file with documentation, for example:
file - foo.py
def foo():
"""
foo documentation
"""
some code here
How can I print out the "foo documentation" from the terminal or interactive session? Thanks.