Docstring in Python | Documentation String | Python Tutorial

Опубликовано: 24 Март 2021
на канале: Codenut
64
3

Assalamualaikum everyone. In this python tutorial video I have discussed about docstring comment in python.

Docstrings comment is a type of comment used in python programming. It's abbreviation is Documentation String.

Docstring comment is different from the normal comment in python.

Docstring comments are written right after the definition of a class, method, module and function.

In docstring comment, the detail of the definition of the function or module or class or method is written.

Docstring comment can be retrieved using the _doc_ attribute. That means we can print the comment.

Docstring comment can be written as single line comment or multi-line comment.

There are various ways of writing a docstring comment. I'll try to nake a video on that as well.

For more detail information about docstring comment watch my video.

Thank you so much for joining here. I really appreciate you reaching out.

If you notice any mistake, mention it in the comment below. I'll be happy to co-operate.

Thank You.


На этой странице сайта вы можете посмотреть видео онлайн Docstring in Python | Documentation String | Python Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Codenut 24 Март 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 64 раз и оно понравилось 3 зрителям. Приятного просмотра!