← Back to Lists
Question 107
First And Last Together
First And Last Together
Using the list grades, print exactly one line in the form First: <a>, last: <b> where <a> is the first element and <b> is the last, with the comma and spacing shown. Build the line with a single f-string rather than several print arguments. No input is read.
Expected Output:
First: 74, last: 79= newline. The output ends with a newline — print one after the last line.
Hints2 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.