Python has a nifty feature called documentation strings which is commonly mentioned by its shorter name docstrings. We can even get back the docstring from, let say a function, when the program is actually running!
”’This function prints Hello”’
This function prints Hello
To write the documentation of sys:
note the sys.html is written in the same path.