← Back to Printing
Question 63
GPA With Two Decimals
GPA With Two Decimals
Print one line of output stating that the declared name has a GPA of the declared value shown with exactly two decimal places (so a trailing zero appears), ending with a full stop. Use the :0.2f format spec inside the f-string braces. Input: none; the values are fixed in the code.
Expected Output:
Giselle has a GPA of 3.80.= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Printing
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.