Skip to content

Sajal Choudhary

Garden Stream Nordletter Books About
Colophon Now Feeds
Evergreen TIL Shelf Stories Poems
Blog Micro Photos
Books Film TV Games
til python
Sajal Choudhary https://sajalchoudhary.net

To Remove Duplicates From a List Use Sets

PYTHON
# 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 Evergreen TIL Stories Poems Photos Bookshelf

© 2026 Sajal Choudhary

Streak New posts for 126 consecutive weeks