Write a function that returns list of elements with n power to elements of list
Topic: Write a function that returns list of elements with n power to elements of list
Solution
def n_power(l1:list, power:int)->list: return [i**power for i in l1]
List all Python Programs