print(__doc__) in Python 3 script
it seems __doc__ is useful to provide some documentation in, say, functions This is true. In addition to functions, documentation can also be provided in modules. So, if you have a file named mymodule.py like this: You can access its docstrings like this: Now, back to your question: what does print(__doc__) do? Simply put: it prints the module docstring. If no … Read more