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):
grade = "F"
if gpa >= 4.0:
grade = "A"
elif gpa >= 3.0:
grade = "B"
elif gpa >= 2.0:
grade = "C"
elif gpa >= 1.0:
grade = "D"
return grade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment