Skip to content

Instantly share code, notes, and snippets.

Created Dec 9, 2020
What would you like to do?
Codecademy export
def grade_converter(gpa):
if gpa >= 4.0:
return "A"
elif gpa >= 3.0:
return "B"
elif gpa >= 2.0:
return "C"
elif gpa >= 1.0:
return "D"
elif gpa >= 0.0:
return "F"
grade = gpa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment