---
title: "Discussion on \"Python docstrings\" | Hashnode"
description: "Discussion on \"Python docstrings\". In Python, if we do not assign a variable to a string, it acts as a comment named docstring. \nThey are string literals that appear right after a function, module or class. They are enclosed in triple quotes. \nDocstrings are built-in strings that, whe..."
url: "https://hashnode.com/posts/python-docstrings/647fb8c78d62353b8e0a6da2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python docstrings](https://kaykay7.hashnode.dev/python-docstrings?utm_source=hashnode&utm_medium=feed)

In Python, if we do not assign a variable to a string, it acts as a comment named docstring. They are string literals that appear right after a function, module or class. They are enclosed in triple quotes. Docstrings are built-in strings that, whe...

Jun 6, 2023 · 2 min read · kaykay7.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#documentation](https://hashnode.com/tag/documentation)
-   [#newbie](https://hashnode.com/tag/newbie)

## Written by

[Kelechi Kizito Ugwu](https://hashnode.com/@Kelechiikizito7)

@Kelechiikizito7 · Lagos, Nigeria.

  
[View profile](https://hashnode.com/@Kelechiikizito7)

Technical writer.

I am a passionate and versatile Full Stack Web Developer and Technical Writer with a love for crafting innovative digital solutions and communicating complex technical concepts in a clear and engaging manner. As a technical writer, My writing style emphasizes clarity, consistency, and user-centricity, making it easier for developers and stakeholders to understand and adopt the technology.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
