---
title: "Discussion on \"The One-Word Change That Made My Code 10,000x Faster\" | Hashnode"
description: "Discussion on \"The One-Word Change That Made My Code 10,000x Faster\". Learn why \"in\" works instantly on sets but crawls through lists. A one-word change that can make your Python code 10,000x faster."
url: "https://hashnode.com/posts/the-one-word-change-that-made-my-code-10000x-faster/69650903f516eab7e0531681"
---

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

Discussion

# [The One-Word Change That Made My Code 10,000x Faster](https://samuelochaba.hashnode.dev/the-one-word-change-that-made-my-code-10000x-faster?utm_source=hashnode&utm_medium=feed)

Learn why "in" works instantly on sets but crawls through lists. A one-word change that can make your Python code 10,000x faster.

Jan 12 · 2 min read · samuelochaba.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#performance](https://hashnode.com/tag/performance)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#optimization](https://hashnode.com/tag/optimization)
-   [#programming-ciovqvfcb008mb253jrczo9ye](https://hashnode.com/tag/programming-ciovqvfcb008mb253jrczo9ye)

## Written by

[Samuel Ochaba](https://hashnode.com/@samuelochaba)

@samuelochaba

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

Teaching Python for future AI engineers

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
