What "and" and "or" return

Predict the output · Challenge · §5.5, §6.5 Truthy and falsy

This code was meant to pick posts that have 50 or more likes and at least one of the tags data or survey. Predict the output without running the code.

Code

likes = 50
tags = ["news"]
selected = likes >= 50 and "data" or "survey" in tags
print(selected)

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.