Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = input()
- grades = 0
- clas = 0
- average_grades = 0
- while True:
- score = float(input())
- grades += score
- clas += 1
- if score <= 2:
- print(f'{name} has been excluded at {clas} grade')
- break
- elif grades > 4.00 and clas == 12:
- average_grades = grades / clas
- print(f'{name} graduated. Average grade: {average_grades:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement