Mạnh Cường
Member
What will be the output of the following Python list comprehension?
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
Code:
[j for i in range(2,8) for j in range(i*2, 50, i)]
B. A list of numbers divisible by 2, up to 50
C. A list of non prime numbers, up to 50
D. Error