def print_key_diff(key_diff, dict1_name, dict2_name):
 print ('Keys in %s not in %s:' % (dict1_name, dict2_name))
 if len(key_diff):
  for key in key_diff:
   print ('  %s' % (key,))
 else:
  print '  None'
 print

def print_key_diff ( key_diff , dict1_name , dict2_name ) : print ( 'Keys in %s not in %s:' % ( dict1_name , dict2_name ) ) if len ( key_diff ) : for key in key_diff : print ( '  %s' % ( key , ) ) else : print '  None' print
prints the keys in the first dictionary and are in the second dictionary .