← Back to Dictionaries
Question 258
GPA To Two Decimals
GPA To Two Decimals
Print the gpa from the student record in the form GPA: <value> with exactly two decimals, using the :0.2f format spec inside an f-string. Input: none. Output: one line; the stored value has one decimal, so a trailing zero must appear.
Expected Output:
GPA: 3.80= 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.