Question: 2. Lists. Create a list with the numbers n, n 2, n 4, n 6, . . . 2 for any given even number n,

2. Lists. Create a list with the numbers n, n 2, n 4, n 6, . . . 2 for any given even number n, (a) (1 point) using a for loop appending to a list. (b) (1 point) using the seq command. (c) (1 point) using the map command with a function (2' > f (2')). You will also use the seq command, but make sure the function is not f (i) = 21. (d) (1 point) using the map command with a procedure. You will also use the seq com- mand, but make sure the function is not f (21) = 22... Test each result with n = 24
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
