sets in python

technical talkiess
0

 s = set()


# print(type(s))
l = [1,2,3]
s1 = set(l)
print(s1)

s.add(3)
# s.remove(3)
s.intersection(s1)
print(s)

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)