Use a list comprehension to display the numbers from 1 through 30 inclusive that are divisible by 3.
What will be an ideal response?
>>> [n for n in range(1,31) if n % 3 == 0]
[3, 6, 9, 12, 15, 18, 21, 24, 27, 30]
Computer Science & Information Technology
You might also like to view...
Enumeration constants:
a. Must have unique integer values. b. Can be assigned other values once they’ve been defined. c. Must have unique identifiers. d. Are declared using the keyword const.
Computer Science & Information Technology
To end a Select Case structure, a(n) ____ statement is used.
A. End Select B. End Case C. Select End D. Select Close
Computer Science & Information Technology