#! /usr/bin/env python


basket = ['apple','orange','apple','pear','orange','banana']

fruit = set(basket)

print fruit

print 'orange in fruit :','orange' in fruit

#---------------------------------

a = set('abcd abcd efg')

print 'a:', a

b = set('abdefghij')

print 'b:',b

print "a - b :", a-b

print "a & b :",a & b

print "a | b :", a | b

print "a ^ b :", a ^ b



