How can we check if a set contains an element?

Using the in keywordBy accessing it by its index

Using the in keyword.