Do I need to return grade, or are there other options?

You are welcome, @janosh, and thank you, @milesmccracken. :smile:

LOL :smile: :smile: :smile: :smile: :rofl: :rofl: :rofl: :rofl: :rofl: :joy: :joy: :joy:

1 Like

Method 3:

grade = ""

def grade_converter(gpa):
  if gpa >= 4.0:
    grade = "A"
    return grade
  elif gpa >= 3.0:
    grade = "B"
    return grade
  elif gpa >=2.0:
    grade = "C"
    return grade
  elif gpa >= 1.0:
    grade = "D"
    return "D"
  else:
    grade = "F"
    return grade
  
print(grade_converter(2.4))

Is there a point to this declaration?