Skip to content

Sajal Choudhary

Garden Stream Nordletter Shelf About
Colophon Now Feeds
Evergreen TIL Story Poem Haiku
Blog Micro Photo
Book Film TV Game
til python
Sajal Choudhary https://sajalchoudhary.net

To Remove Duplicates From a List Use Sets

PYTHON
Planted .
# create set using {} or with set keyword

unique_ports = set([80,443,8080,80])
unique_servers = {“web1”, “web2”}
Updated March 24, 2026 at 16:55 . Thoughts? Email me.
Posted to:
Bluesky Threads Mastodon
About Colophon Now Books Evergreen TIL Story Poem Haiku Photo

© 2012–2026 Sajal Choudhary

Streak New posts for 141 consecutive weeks