Set Equality/Inequality : Set : Collections PYTHON TUTORIALS


PYTHON TUTORIALS » Collections » Set »

 

Set Equality/Inequality


s = set('ABC')
t = frozenset('BCD')
print s == t
print s != t
u = frozenset(s)
print s == u

set('posh') == set('BC')



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Collections
» Set