A check that mixes "and", "or", and "not"
Predict the output · Challenge · §5.5 Combining conditions
The code combines conditions about one post in several ways. Predict the output without running the code.
Code
likes = 80
comments = 0
is_ad = False
print(likes >= 50 and comments > 0)
print(likes >= 50 or comments > 0 and is_ad)
print(not comments > 0 and is_ad)
print(0 < comments <= 10)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.