CJCoding With Joseph
15free / daySign inCreate account

The Last Three Items

The list names holds five strings. Print, as one list, only the last three of them by slicing with a negative start index and no stop; a list of strings prints with quotes around each name. No input is read.

Expected Output:

['Omar', 'Lena', 'Theo']

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