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

DHDHDHDH

This code assigns a letter grade based on a student's numeric grade, with "A+" for any grade over 100, "A" for grades 90 and above, "B+" for grades 85 and above, and so on down to "F" for any grade below 60.

Uploaded by

api-327819082
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)
104 views1 page

DHDHDHDH

This code assigns a letter grade based on a student's numeric grade, with "A+" for any grade over 100, "A" for grades 90 and above, "B+" for grades 85 and above, and so on down to "F" for any grade below 60.

Uploaded by

api-327819082
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
You are on page 1/ 1

if grade > 100.

0:
grade = "A+"

elif grade >= 90.0:


grade = "A"

elif grade >= 85.0:


grade = "B+"

elif grade >= 80.0:


grade = "B"

elif grade >= 75.0:


grade = "C+"

elif grade >= 70.0:


grade = "C"

elif grade >= 65.0:


grade = "D+"

elif grade >= 60.0:


grade = "D"

else:
grade = "F"

You might also like