Answer:
def GPAcalc(letterG):
if "a" in letterG.lower():
return 4
elif "b" in letterG.lower():
return 3
elif "c" in letterG.lower():
return 2
elif "d" in letterG.lower():
return 1
elif "f" in letterG.lower():
return 0
else:
return("Invalid")
letterGrade = input("Enter your Letter Grade: ")
grade = GPAcalc(letterGrade)
print("Your GPA score is: " + str(grade))
Step-by-step explanation:
yuh yuh