Question: 3.Write a function that asks a user to input integers to add to a list, when the user is done adding he/she will type done.

3.Write a function that asks a user to input integers to add to a list, when the user is done adding he/she will type done. When the user is done adding, take every element in that list and find its power to the value of the next item in the list. If we are at the last value in the list, find its power to the previous value in the list. /5 For example if we have a list [1,2,3,4,5,6,7] the new list would equal [1^2,2^3,3^4,4^5,5^6,7^6] When you are done ask the user if they would like to repeat the process and add new numbers, if yes repeat, if no, print (have a nice day!)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!