β
Correct Answer: (B)
[x for x in range(1000) if x%3==0]
Explanation: the list comprehension [x for x in range(1000) if x%3==0] produces a list of numbers between 1 and 1000 that are divisible by 3.
Explanation by: Mr. Dubey
the list comprehension [x for x in range(1000) if x%3==0] produces a list of numbers between 1 and 1000 that are divisible by 3.
Discussion
Question Analytics
472
Total Visits
3 y ago
Published
Mr. Dubey
Publisher
85%
Success Rate