>>> {x*2 for x in a|{4,5}}
A. {2,4,6}
B. Error, set comprehensions aren’t allowed
C. {8, 2, 10, 4, 6}
D. {8,10}
Answer:C
>>> {x*2 for x in a|{4,5}}
A. {2,4,6} B. Error, set comprehensions aren’t allowed C. {8, 2, 10, 4, 6} D. {8,10}