5.1k views
8 votes
7.4 question 1 edhesive

User Nimizen
by
8.0k points

2 Answers

11 votes

Answer:

def GPAcalc(g):

if g == "a" or g == "A":

return 4

elif g == "B" or g == "b":

return 3

elif g == "C" or g == "c":

return 2

elif g == "D" or g == "d":

return 1

elif g == "F" or g == "f":

return 0

else:

return "Invalid"

grade = input("Enter your Letter Grade: ")

gpa = GPAcalc(grade)

print("Your GPA score is: " + str(gpa))

Step-by-step explanation:

User Larry Smith
by
8.5k points
2 votes

Answer:

huh

Step-by-step explanation:

what do you mean? the question doesn't make any sense

User Biagio Arobba
by
8.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.