---
title: "Discussion on \"The idiomatic comparison of in Python\" | Hashnode"
description: "Discussion on \"The idiomatic comparison of in Python\". Some newbies in Python often improperly use the operators is and == without knowing how exactly they work and when to use each one. In this article, I'll talk about the difference between them, and about the use cases of each one.\nSpoiler: the main d..."
url: "https://hashnode.com/posts/the-idiomatic-comparison-of-in-python/5f311bdd3348367b2fc3fd4a"
---

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

Discussion

# [The idiomatic comparison of in Python](https://hashnode.com/post/the-idiomatic-comparison-of-in-python?utm_source=hashnode&utm_medium=feed)

Some newbies in Python often improperly use the operators is and == without knowing how exactly they work and when to use each one. In this article, I'll talk about the difference between them, and about the use cases of each one. Spoiler: the main d...

Aug 10, 2020 · 2 min read · hashnode.com  
Read the article

-   [#python3](https://hashnode.com/tag/python3)
-   [#styleguide](https://hashnode.com/tag/styleguide)
-   [#best-practices](https://hashnode.com/tag/best-practices)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Isaak](https://hashnode.com/@likid)

@likid

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

## Responses 1

Markdown supported · ⌘↵ to post

[Luiz Filipe da Silva](https://hashnode.com/@luizfilipezs)

[Aug 10, 2020](https://hashnode.com/posts/the-idiomatic-comparison-of-in-python/5f311bdd3348367b2fc3fd4a/comment/5f31d23f4332ee07eb55c05f)

This is such an amazing explanation. Thanks for sharing, [Líkið Geimfari](https://hashnode.com/@likid)!

[Isaak](https://hashnode.com/@likid)

[Aug 24, 2020](https://hashnode.com/posts/the-idiomatic-comparison-of-in-python/5f311bdd3348367b2fc3fd4a/comment/5f31d23f4332ee07eb55c05f#reply-5f43a66be4012803d79e0936)

You're welcome!
