10 lines
306 B
Python
10 lines
306 B
Python
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
|
|
|
|
sum_extra = sum([i for i in test_grades if i > 100]) - (len([i for i in test_grades if i > 100]) * 100)
|
|
|
|
print('Sum extra:', sum_extra)
|