0

Shouldn't this be accepted?

Why does this not work in the "analyze to realize" challenge in the list functions section? Does this not work? I used a calculator and everything and I got what looks like the right answer with my calculations and this program here. Why does this Sololearn say it's wrong? data = [7, 5, 6.9, 1, 8, 42, 33, 128, 1024, 2, 8, 11, 0.4, 1024, 66, 809, 11, 8.9, 1.1, 3.42, 9, 100, 444, 78] data.remove(max(data)) data.remove(min(data)) total = 0 for things in data: total += things print (total)

11th May 2021, 4:37 PM
John
John - avatar
1 Resposta
- 2
Remove the space on the print fubction call, and see if that helps
15th May 2021, 2:45 AM
Wilbur Jaywright
Wilbur Jaywright - avatar