← Back to Question List
Python Code Walkthrough #4
Formatting A Grade Point Average
📄 Code
Read carefully — what does this print?1gpa: float = 3.141592credits: int = 123print(gpa)4print(f'{gpa:0.2f}')5print(f'{credits} credits at {gpa:0.1f}')6print(credits / 4)