Question: 4.) Write a Python function called sum_5_power_list which takes one argument, a list of numbers and which when invoked by >>> sum_5_power_list (list_of_numbers) will

4.) Write a Python function called sum_5_power_list which takes one argument, a list of numbers and which

4.) Write a Python function called sum_5_power_list which takes one argument, a list of numbers and which when invoked by >>> sum_5_power_list (list_of_numbers) will print out AND return the sum of the fifth powers of each the numbers in the list. [Test cases: >>> sum_5_power_list ([1]) #should print 1 because 1**5 = 1 1 1 >>> sum_5_power_list ([1,2]) #should print 33 because 1**5 = 1 and 2**5 =32 and 1+32 = 33 33 33 >>> sum_5_power_list ([5,1,3]) # should print 3369 3369 3369

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def sum5powerlistlistofnumbers result ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!