set operation on string : Inter2 : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Inter2 »

 

set operation on string


from inter2 import intersect, union 
s1, s2, s3 = "SPAM""SCAM""SLAM" 

print intersect(s1, s2), union(s1, s2)             # Two operands
print intersect([1,2,3](1,4))                    # Mixed types
print intersect(s1, s2, s3)                        # Three operands
print union(s1, s2, s3)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Buildin Module
» Inter2