5.1k views
8 votes
7.4 question 1 edhesive

User Nimizen
by
6.5k 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
7.1k points
2 votes

Answer:

huh

Step-by-step explanation:

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

User Biagio Arobba
by
7.0k points