Locate outputs from a range

A technician generates calibration lengths in centimetres and converts them to millimetres using this Python 3 list comprehension.


Python
lengths_mm = [length_cm * 10 for length_cm in range(4, 20, 4)]


Complete the table with the exact integer stored at each zero-based index. Every entry in lengths_mm represents a length in millimetres.

IndexLength (mm)
0
1
2
3

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More List Comprehensions Questions: