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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started