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