Summarizing comment counts
Write code · Medium · §7.3 Building up
These are the comment counts of six posts. Find the total number of comments, the number of posts with 0 comments, a new list of the counts that are 5 or more, and the largest comment count. Print the results on four lines in the form Total: value, Posts with no comments: value, 5 or more: list, and Max: value. Do not use sum(), max(), sorted(), or sort().
Starter code
comments = [3, 0, 12, 5, 0, 8]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.