1) Create a list comprehension of multiples of 4 from 4 to 40 inclusive. 2) Use slicing to print the first two values. 3) Use slicing to print the last four values. 4) Use slicing to print from the...


1) Create a list comprehension of multiples of 4 from 4 to 40 inclusive.
2) Use slicing to print the first two values.
3) Use slicing to print the last four values.
4) Use slicing to print from the second to the fourth value inclusive.




(PYTHON)





Example Output

[4, 8]
[28, 32, 36, 40]
[8, 12, 16]



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here