---
title: "Discussion on \"The Brotherhood of : `__str__` & `__repr__`\" | Hashnode"
description: "Discussion on \"The Brotherhood of : `__str__` & `__repr__`\". Understanding the difference between `__str__` and `__repr__`. How they help with debugging and the way to reproduce them in your own code."
url: "https://hashnode.com/posts/the-brotherhood-of-str-and-repr/62207939f66a8f37e114ee06"
---

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

Discussion

# [The Brotherhood of : \`\_\_str\_\_\` & \`\_\_repr\_\_\`](https://xspace.hashnode.dev/the-brotherhood-of-str-and-repr?utm_source=hashnode&utm_medium=feed)

Understanding the difference between \`\_\_str\_\_\` and \`\_\_repr\_\_\`. How they help with debugging and the way to reproduce them in your own code.

Mar 3, 2022 · 4 min read · xspace.hashnode.dev  
Updated Mar 8, 2022  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Snehangsu De](https://hashnode.com/@Snehangsu)

@Snehangsu · India

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

Data Analyst

Data. Mathematics. Statistics. In that order. Oh! Oh!, Neural Nets, how did I miss them! Currently Kaggling.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
