Two thresholds with only one updated

Code review · Medium · §6.2 Otherwise

This code is meant to print Recommended post if there are 120 or more likes, and Regular post otherwise. When the threshold was raised from 100 to 120, only one side was updated. The code runs without errors, but nothing is printed for a post with 110 likes. Fix just one line. Grading runs your code several times with different numbers of likes.

Code to fix

likes = 110

if likes >= 120:
    print("Recommended post")
if likes < 100:
    print("Regular post")

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.