← Back to Lists
Question 106
Second From Each End
Second From Each End
The list grades holds five marks. Print the second element on the first line and the second-last element on the second line, using a positive index for the first and a negative index for the second. No input is read.
Expected Output:
88 65
= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Lists
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.