-
-
Save codecademydev/41aece0f60334e7238af752dc205ad6a to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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