← Back to Lists
Question 134
Ends Of The Line
Ends Of The Line
The list names holds five strings. Print one sentence in the form <first> is first and <last> is last using indexes 0 and -1, then a second line <name> is in the middle where the middle index is len() of the list floor-divided by 2 with //, stored in a variable called middle. No input is read.
Expected Output:
Giselle is first and Theo is last Omar is in the middle
= newline. The output ends with a newline — print one after the last line.
Hints3 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.