How can I raise the numbers in list to a certain power?
Another map pattern, using lambda instead of function.partial():
map
lambda
function.partial()
numbers=[1,2,3,4] squares=list(map(lambda x:pow(x,2),numbers)) print(squares)