Matching an elif to its if by indentation
Predict the output · Medium · §6.4 Decided at the boundary
This code chooses which messages to show based on the numbers of followers and posts. Predict the output without running the code.
Code
followers = 999
posts = 100
if followers >= 1000:
print("Can apply for verification")
if posts >= 100:
print("Featured badge")
elif posts >= 100:
print("Steady writer")
print("Check done")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.