← Back to Dictionaries
Question 256
First And Last Grade
First And Last Grade
The grades in the student record are a list stored under the key grades. Print the first grade, then on the next line the last grade, reaching into the list with a second pair of square brackets after the key. Input: none. Output: two lines, each a grade as Python prints the float.
Expected Output:
74.25 68.0
= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Dictionaries
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.