Оцінка за балами
Python Галуження
if / elif / else
Блок-схема за ДСТУ
Вихідний код
def grade(score):
if score >= 90:
print("Відмінно")
elif score >= 60:
print("Задовільно")
else:
print("Незадовільно") if / elif / else
def grade(score):
if score >= 90:
print("Відмінно")
elif score >= 60:
print("Задовільно")
else:
print("Незадовільно")