CJCoding With Joseph
15free / daySign inCreate account

Alternate Grades With A Step

The list grades holds eight marks. Print every second element starting with the first, as one list, using a slice whose start and stop are both empty and whose step is 2. No input is read.

Expected Output:

[74, 91, 79, 32]

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