Your question is Second Last Element. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Print the 2nd last element of a reversed array.
The input array is already provided in reversed order. Implement the function to return its second-last element, meaning the value at index len(arr) - 2.
Input: A list arr containing at least two integers.
Output: The integer at the second-last position. Do not modify the input array.
def second_last_reversed(arr):