Homework Questions? Ask a Tutor for Answers ASAP
(q1) Write a recursive function called power_of_2 that takes as parameter a number N and returns 2N. Use the fact that 2N is 2 multiplied by itself N times. DO NOT USE THE ** operator!
(q2) Write a recursive function called square_sum that takes a parameter a number N and returns the sum 12 + 22 + 32 + ... + N2.
(q3) Write a recursive function called listProd for the following problem: You are given as inputs: a list L of numbers, and a number N (which is the length of the list); need to compute and return the product of all the numbers in the list (that is L * L * L * ... * L[N-1]).
I need them as soon as possible please.
can't you write the whole 3 programs ?
I want to run the programs in my computer
I want to write these 3 programs in PYTHON.
I need an expert in computer programming --- python !!
Can you please tell me when will you approximately finish the program ?
Like how long do you need to finish it ?
I'm waiting for your response.
Thank you very much.
I will wait for your response.
it's PYTHON 2.7.5