
#Set

# Not holding Duplicates

#Hetrogeneous

#Apply Set Operations, Union, Intersection, Subtraction

'''
A(1,2,5)
B(2,4,5)

(1,2,4,5)

(2,5)
'''

#Ordered

s1 = {1,2,3,5,8,4}
s1

#

#Hetrogeneous

s2 = {1, 'Vikas', 2.4}
s2

#Not Allowing duplicate elements

s3 = {1,9,2,3,2,6,5,8}
s3

#Index

s3[1]

for n in s3:
    print(n)


#Mutable or changable
s2.add("Khullar")
s2

s3.add(4)
s3

s2.add('Khullar')
s2

s2.update(['A','B'])

s2

s2.update(['A','B','C'])

s2


s2.update('A','B','Z')

s2

s2.remove('A')
s2

s2.remove('A')
s2

s2.discard('B')
s2

s2.discard('B')
s2

s2.pop()

# s2.pop(1)

s2.clear()
s2
del s2


teamA = {'India', 'Australia','Pakistan', 'England'}
teamB = {'Bangladesh', 'New Zealand', 'West Indies', 'India'}

teamA.union(teamB)
teamA.intersection(teamB)
teamA.difference(teamB)


t1 = {1,3,0,5,7,8,90,'A','B','C'}
t1

s1={90,1,3,5,7,8,0,}
print(s1)

s1.update('A','B','C')

print(s1)
s1



s1.pop()
















