-
A.
Yellow
-
B.
Syntax Error
-
C.
Orange
Correct Option: BExplanation: Syntax Error
We cannot access items in a set by referring to an index because the ‘set’ object does support indexing (the set is unordered). if you try to access items using the index, you will get TypeError: ‘set’ object does not support indexing.
Use a for loop to access set items.
sampleSet = {"Yellow", "Orange", "Black"}
for item in sampleSet:
print(item)