---
title: "Discussion on \"Sets in Python\" | Hashnode"
description: "Discussion on \"Sets in Python\". Sets are unordered collection of data items, which are also present in Python. We will learn about them today."
url: "https://hashnode.com/posts/sets-in-python/63d1704bd378014c490c0879"
---

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

Discussion

# [Sets in Python](https://swapnoneel.hashnode.dev/sets-in-python?utm_source=hashnode&utm_medium=feed)

Sets are unordered collection of data items, which are also present in Python. We will learn about them today.

Jan 25, 2023 · 3 min read · swapnoneel.hashnode.dev  
Updated Apr 11  
Read the article

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

## Written by

[Swapnoneel Saha](https://hashnode.com/@swapnoneel123)

@swapnoneel123 · Kolkata, India

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

Software Engineer

I build tools that make developers faster and help startups grow. I specialize in building agentic workflows, oss infrastructure, high-performance web systems, and creating technical content. I've spent years building products used by thousands, from developer-facing infrastructure at Keploy and Wizdom to building the user base for early-stage startups. My work sits at the intersection of agentic AI, open-source ecosystems, and growth engineering.

## Responses 2

Markdown supported · ⌘↵ to post

[Debajyati Dey](https://hashnode.com/@Debajyati)

[Feb 1, 2023](https://hashnode.com/posts/sets-in-python/63d1704bd378014c490c0879/comment/63d9d9bf672b295ef3b41313)

Neat! You covered most of the things about sets. But I think, you could also highlight the matter that sets do not contain duplicates with a suitable example. We have a built-in function 'set()', allows us to convert data structures(like lists & tuples) into sets. When solving problems we often face an issue about discarding duplicates. It would have been a lot better for beginners if you mentioned this concept.

However your all blogs are going amazing.Warm regards 😊👍.

[Swapnoneel Saha](https://hashnode.com/@swapnoneel123)

[Feb 1, 2023](https://hashnode.com/posts/sets-in-python/63d1704bd378014c490c0879/comment/63d9d9bf672b295ef3b41313#reply-63da1758672b295ef3b41f80)

Thanks a lot Debajyati, maybe I should have included those stuffs in this blog only... but I have a planned a different blog for that purpose, where I will discuss the difference between tuple, list, set and dictionary and how to inter-convert them. So, stay tuned for that !!

[Mehebub Kalapati](https://hashnode.com/@mkpty)

[Jan 27, 2023](https://hashnode.com/posts/sets-in-python/63d1704bd378014c490c0879/comment/63d37844b157410d87d9aa3d)

I learned sets from this blog. you are amazing

[Swapnoneel Saha](https://hashnode.com/@swapnoneel123)

[Jan 27, 2023](https://hashnode.com/posts/sets-in-python/63d1704bd378014c490c0879/comment/63d37844b157410d87d9aa3d#reply-63d3e769d9df8015cdfacc60)

Thanks Mehebub, your appreciation means a lot to me.
