1

Write a list comprehension for producing a list of numbers between 1 and 1000 that are divisible by 3.

Correct Answer: [x for x in range(1000) if x%3==0]

Make the most of this question

This page focuses on one Problem Solving and Python Programming question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Problem Solving and Python Programming MCQ: Write a list comprehension for producing a list of numbers between 1 and 1000 that are divisible by 3. | Extra Education