0% found this document useful (0 votes)
10 views1 page

Program

This document is a Python script that calculates the average of five subject marks input by the user. Based on the average, it assigns a grade from A to E, with A for averages above 90 and E indicating a fail. The script uses conditional statements to determine the appropriate grade based on the calculated average.

Uploaded by

drezhil2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Program

This document is a Python script that calculates the average of five subject marks input by the user. Based on the average, it assigns a grade from A to E, with A for averages above 90 and E indicating a fail. The script uses conditional statements to determine the appropriate grade based on the calculated average.

Uploaded by

drezhil2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

a=int(input('english mark:'))

b=int(input('biology mark:'))

c=int(input('physics mark:'))

d=int(input('chemistry mark:'))

e=int(input('computer sciene mark'))

avg=(a+b+c+d+e)/5

if(avg>90):

print('the grade is A')

elif(avg>80):

print('the grade is B')

elif(avg>70):

print('the grade is C')

elif(avg>60):

print('the grade is D')

else:

print('grade E-FAIL')

You might also like