# Documentation

Professional documentation of Python is based on Docstrings. For any object, if I type **help(*****object\_name*****)** I get the associated docstring.

<figure><img src="https://content.gitbook.com/content/waPIks0TDQHpI0Cy8Jml/blobs/OO75hklX24lEklRg0oX0/image.png" alt=""><figcaption></figcaption></figure>

I can examine the directory of any object by typing **dir(*****object\_name*****)**. It is a bit messy, but I can see all the properties of int. One of those properties is **\_\_doc\_\_** as shown below.

<figure><img src="https://content.gitbook.com/content/waPIks0TDQHpI0Cy8Jml/blobs/KcLtFpVGHPm7gZjpII3S/image.png" alt=""><figcaption></figcaption></figure>

I wrote the following simple programme. I called the function, that worked. I then asked for the associated docstring using help.

<figure><img src="https://content.gitbook.com/content/waPIks0TDQHpI0Cy8Jml/blobs/Mo8iITRWcHA8SeshtpKC/image.png" alt=""><figcaption></figcaption></figure>

Useful!
