#region Notes
"""
Mutable
Un-ordered sequence
No Duplicate values
Heterogenous
Elements should be immutable.
"""
#endregion
a={"Ravi",12,12.5,True,12,12,12}
print((a))
"""
Set ADT
Union of two sets.
Intersection of two set.
Difference of two sets.
symmetric difference of two sets.
Adds all elements of array B to the set A.
Remove all elements of array B to the set A.
"""
#region 1
b=set({1,2,3})
c=({7,4,5,2})
c.add(6)
c.update(b)
print(c)
print(b.union(c))
print(b.intersection(c))
print(b.difference(c))
print(b.symmetric_difference(c))
#endregion
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Tutorial: Set in Python durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learn to code 23 août 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 80 fois et il a aimé 4 téléspectateurs. Bon visionnage!