Grade by score
Python Branching
if / elif / else
Flowchart (ISO 5807)
Source code
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("Незадовільно")