0
What is the output of the following Python code?
s = {x % 3 for x in range(10)}
print(s, sum(i for i in range(5) if i % 2))- A{1, 2} 4
- B{0, 1, 2} 10
- C{0, 1, 2, 3} 4
- D{0, 1, 2} 4
Correct answer: D
What is the output of the following Python code?
s = {x % 3 for x in range(10)}
print(s, sum(i for i in range(5) if i % 2))