An assignment inside a skipped block

Predict the output · Basic · §6.1 What if

This code changes a post's status based on its views. Predict the output without running the code.

Code

views = 950
status = "normal"

if views >= 1000:
    status = "popular"
    print("Sending a notification")
print("Status:", status)
if views >= 500:
    print("Recommendation candidate")

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.