Question: 
Write a function to find the n-th power of individual elements in a list using lambda function.


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



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


Asserts:
assert nth_nums([1, 2, 3, 4, 5, 6, 7, 8, 9, 10],2)==[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
assert nth_nums([10,20,30],3)==([1000, 8000, 27000])
assert nth_nums([12,15],5)==([248832, 759375])


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

Test 623 of 974: 463/623 (74.31781701444623%): success