Here is the problem:

We are passing in 3 inputs.

•a list of numbers

•a multiplier value, M

•a value, N

You should multiply every Nth element (do not multiply the 0th element) by M. So, if N is 3, you start with the 3rd element, which is index 2.

If there are less than N elements then you should output the unchanged input list.

Code:

numbers = [1,2,3,4,5,6,]

N = 7

M = 2

## N & M can change and do

for i in range(2, len(numbers), N):

numbers[i] *= M

print(numbers)