CJCoding With Joseph
15free / daySign inCreate account

Reverse Then Split

From the list grades print three slices as lists, one per line: the whole list reversed with a step of -1, the first three elements, and every element from index 3 to the end. Each line shows square brackets and commas because a slice is a list. No input is read.

Expected Output:

[30, 32, 40, 79, 65, 91, 88, 74]
[74, 88, 91]
[65, 79, 40, 32, 30]

= newline. The output ends with a newline — print one after the last line.

Hints3 available
Topics:
ListsSlicing
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.