new_contents: # -*- coding: utf-8 -*-
  d = {'Michael': 95, 'Bob': 75, 'Tracy': 85}
  print d['Michael']
  
  d['Adam'] = 67
  print d['Adam']
  
  print 'Thomas' in d
  print 'Adam' in d
  print d.get('Thomas')
  print d.get('Thomas', -1)
  
  print d.pop('Bob')
  print d
  
  # key = [1, 2, 3]
  # d[key] = 'a list'
  
  s = set([1, 2, 3])
  print s
  
  s = set([1, 1, 2, 2, 3, 3])
  print s
  
  s.add(4)
  print s
  
  s.remove(4)
  print s
  
  s1 = set([1, 2, 3])
  s2 = set([2, 3, 4])
  print s1 & s2
  print s1 | s2
  
  a = ['c', 'b', 'a']
  a.sort()
  print a
  
  a = 'abc'
  print a.replace('a', 'A')
  print a
  
subject: add dict_set.py