Home / Programming MCQs / Python MCQs / Question

T

Tanmay • 2.43K Points
Master

Q. What will be the output of the following Python list comprehension?

Code:
[j for i in range(2,8) for j in range(i*2, 50, i)] 
(A) A list of prime numbers up to 50
(B) A list of numbers divisible by 2, up to 50
(C) A list of non prime numbers, up to 50
(D) Error

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.