Question: This is all in Python. (1) Let L be a list and let T be a target. Write code to find the index of the
This is all in Python.
(1) Let L be a list and let T be a target. Write code to find the index of the second occurrence of T in the list. If there is no such occurrence,
print a message to that effect. Try doing 2 versions, one using the builtin list methods and one using your own loop(s).
(2) Write code to check if a list L is a "palindrome", i.e., it read the same from back to front or from front to back. This is easy with builtins, try it
with loops.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
