Vidyalelo
Python · Q82

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 82

Q82

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
Answer
D.
Error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board