Classifying post reactions by comment count

Write code · Medium · §6.3 Many branches

Classify a post's reaction by its number of comments, comments, and store it in reaction. 50 or more is "hot", 10 or more but fewer than 50 is "active", 1 or more but fewer than 10 is "moderate", and 0 is "quiet".

Starter code

comments = 23

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.