Question: python python python python python python python python python python python python python python need you help to add Loop in orginal code orginal code
python python python python python python python python python python python python python python
need you help to add Loop in orginal code
orginal code below

A sample output is given below:

1 2 def print_score(name, value): print(name, (value//5)) WN 3 4 5 6 = 7 8 9 10 11 def calculate_grade (project, exam): total_score = project + exam print('Total:', total_score) if total_score >= 60 and project >= 25 and exam >= 25: return 'A' elif (total_score >= 50) and (project >= 25 or exam >= 25): return 'B' elif total_score >= 40: return C else: return 'D' 12 13 14 15 16 17 18 19 def read_number(prompt): return int(input(prompt)) 20 21 22 23 24 def print_report (project, exam, grade): total = project + exam print_score('Project :', project) print_score('Exam :', exam) print_score('Total :', total) print('Grade :', grade) 25 26 27 28 29 30 31 32 def main(): project_score = read_number("Enter project score:') exam_score = read_number("Enter exam score:') grade = calculate_grade (project_score, exam_score) print_report (project_score, exam_score, grade) 33 34 35 36 37 maino II II II = = = II II II II = II II 11 = = = = 1 Enter project score: 10 2 Enter exam score: 50 3 Total: 60 4 Project : 5 Exam : 6 Total : 7 Grade : B 8 Continue y?y 9 Enter project score:50 10 Enter exam score:49 11 Total: 99 12 Project : 13 Exam : 14 Total : 15 Grade : A 16 Continue y?n 11 II = II = = = = = =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
