Creating a set



examples/sets/create_set.py
things = set(['table', 'chair', 'door', 'chair', 'chair'])
print(things)
print(type(things))

if 'table' in things:
   print("has table")

other = {'table', 'chair', 'door'}
print(type(other))

{'door', 'table', 'chair'}
<class 'set'>
has table
<class 'set'>