Getting the docstring from a function October 9, 2022 by Tarik Interactively, you can display it with help(my_func) Or from code you can retrieve it with my_func.__doc__