Computer Science, asked by garimadiksha, 3 months ago

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 jai696
3

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

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: ")))))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions