Question: I'm having a bit of trouble with this code, could someone help me??? I wrote some and some parts have eluded me. Below, is the

I'm having a bit of trouble with this code, could someone help me??? I wrote some and some parts have eluded me. Below, is the question and my code. Thanks for the help.

Assign sum_extra with the total extra credit received given list test_grades. Full credit is 100, so anything over 100 is extra credit.

Sample output for the given program with input: '101 83 107 90'

Sum extra: 8 

(because 1 + 0 + 7 + 0 is 8)

user_input = input()

test_grades = list(map(int, user_input.split())) # test_grades is an integer list of test scores

sum_extra = -999 # Initialize 0 before your loop

print('Sum extra:', sum_extra)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!