PYTHON CORE · LESSON 21
Another choice.
elif between if and else · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Reprint the three branches. Check the indentations.
points = 5
if points > 7:
print("Высоко")
elif points > 3:
print("Средне")
else:
print("Низко")Open the editor for class workSolve it yourself
Save 6 to score. If score is more than 8, output «Отлично», otherwise if more than 4, «Хорошо», otherwise «Учись». Use if, elif and else.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework