#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
En esta página del sitio puede ver el video en línea Python Tutorial: Set in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Learn to code 23 agosto 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 80 veces y le gustó 4 a los espectadores. Disfruta viendo!