Write a program in Python to calculate result of a student.
First Division - Percentage>=60
Second Division - Percentage >=50 and <60
Third Division - Percentage >=33 and < 50
Failed – Below 33
Answers
Answered by
3
def result(percentage):
if percentage >= 60:
return "First Division"
if 50 <= percentage < 60:
return "Second Division"
if 33 <= percentage < 50:
return "Third Division"
return "Failed"
print(result((p := float(input("percentage: ")))))
Similar questions