Examveda

What will be the output of the following Python list comprehension?
[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

Answer: Option C


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python