refer to the image. which line or lines will print if the code is run? 212-elif.py 212-elif.py >... 1 score…

refer to the image. which line or lines will print if the code is run? 212-elif.py 212-elif.py >... 1 score = 18000 2 3 if score > 10000: 4 print(\you have reached level 2\) 5 elif score > 5000: 6 print(\you have reached level 1\) 7
Answer
Explanation:
Step1: Check the if - condition
The variable score is set to 18000. The first condition if score > 10000 is True since 18000 > 10000.
Step2: Execution flow
When an if condition is True, the block of code under the if statement is executed and the elif and else (if any) blocks are skipped. So the code print("You have reached level 2") will execute.
Answer:
You have reached level 2