Lists:
More on for-loops and review of previous assignments.
>>> list(range(10)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> list(range(1, 11)) [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] >>> list(range(0, 30, 5)) [0, 5, 10, 15, 20, 25] >>> list(range(0, 10, 3)) [0, 3, 6, 9] >>> list(range(0, -10, -1)) [0, -1, -2, -3, -4, -5, -6, -7, -8, -9] >>> list(range(0)) [] >>> list(range(1, 0))
Assignments:
Write code snippets for the following specific sequence of integers using the range function:
NOTE: the lower and upper bounds are included in the lists.
a. A list of even integer numbers from 2 through 24.
b. A list of even integer numbers from 48 through 22.
c. A list of perfect square numbers from 1 through 100.
d. A list of numbers starting from -13 through 0.
Required Submission
Copy and paste the snippets and the output in the Text Entry tab.
NOTE: No need for documentation.