QUESTION DESCRIPTION
Write a python function to calculate the GRADE systems of marks
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output
Input :
Input 5 numbers
Write a python function to calculate the GRADE systems of marks
Refer sample input and output for formatting specification.
All float values are displayed correct to 2 decimal places.
All text in bold corresponds to input and the rest corresponds to output
Input :
Input 5 numbers
def grade(avg):
if avg > 90:
print("Grade:A")
if avg > 70 and avg < 90:
print("Grade:B")
if avg > 50 and avg < 70:
print("Grade:C")
if avg < 51:
print("Grade:D")
a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
avg=(a+b+c+d+e)/5
grade(avg)
Comments
Post a Comment