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
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.