subject

# Assign sum_extra with the total extra credit received given list test_grades. Full credit is 100, so anything over 100 is extra credit. For the given program, sum_extra is 8 because 1 + 0 + 7 + 0 is 8. Sample output for the given program:

test_grades = [101, 83, 107, 90]
sum_extra = -999 # Initialize 0 before your loop
sum_extra = 0
for grade in test_grades:
if grade > 100:
grade = grade - 100
else:
grade = 0
sum_extra += grade

print('Sum extra:', sum_extra)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Match the steps of the process to julia's analysis. 1. analyze choices. current costs for making phone calls to foreign countries averages between five and ten cents a minute. 2. determine the goals. julia needs to reduce the cost of telecommunications without reducing her employees' ability to do their jobs. 3. gather data. the corporate computer network will be able to handle the increased traffic that will occur as a result of voip. 4. evaluate the decision. julia will have her it department set up voip in the smallest domestic office. 5. make the decision. julia will have employees document the benefits and problems that result from using the new technology.
Answers: 1
question
Computers and Technology, 22.06.2019 02:00
Which of the following is a way the operating system prevents unknown or unauthorized users from accessing the system?
Answers: 2
question
Computers and Technology, 22.06.2019 11:00
Which law requires employers to provide safe working environments for their employees? a. civil rights act b. fair labor standards act c. occupational safety and health act d. wagner act
Answers: 1
question
Computers and Technology, 23.06.2019 13:50
Explain how email technologies enable the exchange of messages between users. find out the typical parts of an email address and explain each part.
Answers: 1
You know the right answer?
# Assign sum_extra with the total extra credit received given list test_grades. Full credit is 100,...
Questions
question
Mathematics, 17.07.2019 19:30
question
Mathematics, 17.07.2019 19:30
question
Biology, 17.07.2019 19:30
question
Mathematics, 17.07.2019 19:30
Questions on the website: 13722360