Question: 
Write a function to print n-times a list using map function.


Model's Code:
def ntimes_list(lst, n):
    return list(map(lambda x: x * n, lst))



Sample Correct Code:
def ntimes_list(nums,n):
    result = map(lambda x:n*x, nums) 
    return list(result)


Asserts:
assert ntimes_list([1, 2, 3, 4, 5, 6, 7],3)==[3, 6, 9, 12, 15, 18, 21]
assert ntimes_list([1, 2, 3, 4, 5, 6, 7],4)==[4, 8, 12, 16, 20, 24, 28]
assert ntimes_list([1, 2, 3, 4, 5, 6, 7],10)==[10, 20, 30, 40, 50, 60, 70]


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 865 of 974: 665/865 (76.878612716763%): success