Days with more likes than average

Write code · Challenge · §9.4, §10.4, §10.6 Polishing the math helper

likes.txt holds the number of likes received each day, one number per line, in date order. Read the file into a list of integers. Then collect the day numbers (1 for the first day, and so on) of the days with more likes than the average, in order, and store them in good_days. The first day is number 1. The file has at least one number. Use a list comprehension at least once.

File likes.txt

12
30
7
41

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.