Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this work, you must use recursion for every exercise. Please use python code

ID: 650795 • Letter: F

Question

For this work, you must use recursion for every exercise.

Please use python code to write it!

Write a recursive function called reverse that takes a list as an argument and reverses it.

Write a recursive function called search that takes a list that is already in order and a single integer and returns the index at which that integer appears in the list. If the integer does not appear in the list, return -1.

Write a function called stars that takes a single argument, height, and prints a triangle of stars of that height.

Write a function called gcd that takes two arguments and finds the greatest common divisor between the two.

Explanation / Answer

hope this may helps you ..

array=[0,10,20,40]
for i in reversed(array):
print i

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote