Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = input()
- grades = 1.0
- sum_all_grades = 0.0
- while grades <= 12:
- grade = float(input())
- if grade >= 4.00:
- sum_all_grades += grade
- grades += 1
- average = sum_all_grades / 12
- print(f"{name} graduated. Average grade: {average:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment