> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/all/python/collections/set.md).

# Set

```python
new_set = set()
tags_set = {"apple", "banana", "cherry"}

thisset.remove("banana")
thisset.add("orange")

z = x.intersection(y)
set3 = set1.union(set2)
```

```ts
const uniqueContactOwners = new Set<string>();

for (let uid in uniqueContactOwners) {
  //.......
}

```
