Question: In Python power_list accepts an integer list as the first argument and an integer as the second argument. The function should return a new list
In Python
power_list accepts an integer list as the first argument and an integer as the second argument. The function should return a new list that raises each element to the power of what was entered in the second argument.
Example test_list = [5, 3, 2]
result_pow would be equal to: [ 25, 9, 4 ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
