CJCoding With Joseph
15free / daySign inCreate account

Backwards With A Slice

The list grades holds eight marks. Print the whole list in reverse order, as one list, using a slice whose step is -1 and whose start and stop are both left empty. No input is read.

Expected Output:

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

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

Hints2 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.