A condition that misses values outside the range

Code review · Medium · §5.5 Combining conditions

You want to flag posts with fewer than 10 views or more than 1000 views for a separate check. This code tries to print True for such a post and False otherwise. It runs without errors, but it prints False even when the views are 5. Fix just one place.

Code to fix

views = 5
print(views < 10 and views > 1000)

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.