---
title: "Discussion on \"frozen sets pay no heed to order\" | Hashnode"
description: "Discussion on \"frozen sets pay no heed to order\". I superficially assumed a frozenset accounts for the order of items it was constructed with such that the following assertion would fail.\nassert(\n   frozenset([('a',1), ('b',1)]) == frozenset([('b',1), ('a',1)])\n)\n\nThinking about it for a second, set..."
url: "https://hashnode.com/posts/frozen-sets-pay-no-heed-to-order/66a67d4b0dd7fe4c9fa9d743"
---

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

Discussion

# [frozen sets pay no heed to order](https://blog.danwald.me/frozen-sets-pay-no-heed-to-order?utm_source=hashnode&utm_medium=feed)

I superficially assumed a frozenset accounts for the order of items it was constructed with such that the following assertion would fail. assert( frozenset(\[('a',1), ('b',1)\]) == frozenset(\[('b',1), ('a',1)\]) ) Thinking about it for a second, set...

Jul 28, 2024 · 1 min read · blog.danwald.me  
Read the article

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

## Written by

[Danny Crasto](https://hashnode.com/@danwald)

@danwald · dubai, uae

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

backend/cloud engineer | mentor | pythonista

I am developer/code-reviewer/debugger/bug-fixer/architect/teacher/builder from dubai, uae

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
