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...
A(n) ________ fill gradually changes from one color to another
A) gradient B) solid C) decorative D) alternating
Computer Science & Information Technology
Because ________, asynchronous Tasks are frequently used in GUI apps that invoke web services (or perform network communication in general) to ensure that the apps remain responsive.
a) there can be unpredictably long delays while awaiting a web-service response b) synchronous tasks don’t work well in GUI apps c) web services are not designed to work with synchronous Tasks d) memory is limited in GUI-based web services
Computer Science & Information Technology