- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Given:
sampleSet = {"Yellow", "Orange", "Black"}
sampleList = ["Blue", "Green", "Red"]
Code :
sampleSet={"Yellow", "Orange", "Black"}
sampleList = ["Blue", "Green", "Red"]
sampleSet.update(sampleList)
#sampleSet.add(sampleList[0])
#sampleSet.add(sampleList[1])
#sampleSet.add(sampleList[2])
print(sampleSet)
Comments
Post a Comment