set intersection : Set : Data Structure PYTHON examples


PYTHON examples » Data Structure » Set »

 

set intersection


set intersection
 
import sets

magic_chars = sets.Set('abracadabra')

poppins_chars = sets.Set('supercalifragilisticexpialidocious')

print ''.join(magic_chars & poppins_chars)    



           
         
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Data Structure
» Set