Question: template we are supposed to use: (Python) https://drive.google.com/file/d/1rmamf9ppiNo_hy5RmnW5qgdfkJ-3XwW7/view?usp=sharing 1. Write a recursive function reversible) that takes a list as a parameter and returns True if

 template we are supposed to use: (Python) https://drive.google.com/file/d/1rmamf9ppiNo_hy5RmnW5qgdfkJ-3XwW7/view?usp=sharing 1. Write a

template we are supposed to use: (Python)

https://drive.google.com/file/d/1rmamf9ppiNo_hy5RmnW5qgdfkJ-3XwW7/view?usp=sharing

1. Write a recursive function reversible) that takes a list as a parameter and returns True if the list is the same forward and backward and False otherwise. A list is the same forward and backward if items viewed from the front to back and back to front are the same. A list with 0 or l items is also defined to be reversible. You may not use any list cperator or functions other than len(), indexing (Ist[i] for an integer i), or slicing (lst[i:j] for non-negative integers i and j). In particular, the list function reverse0 or negative indices that reverse a list should not be used under any circumstances. The function should not modify the list passed as a parameter. The following shows how the function behaves on several sample parameters >>> 1stl ['a', '"b', 'b','a'] >>> reversable (13:1) True >>1st2-['a', 'b', c','d', e'1 >>>reversable (1st2) False >>> lst3-['a', 'b', 'c',"b,'a'] >>> reversable (13 3) True >>>1st4-[1,2,3, "a',3,2,1] >>>reversable (1st4) True >>> reversable ([l] True >>> reversable (] True

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!