python contained in set code example Example: python set contains a_set = {1, 2, 3} one_in_a_set = 1 in a_set # True