def GPAcalc(grade, weighted):
grade = grade.lower()
dictionary = {"a": 4, "b": 3, "c": 2, "d": 1, "f": 0}
if weighted == 1 and grade in dictionary:
return "Your GPA score is: "+str(dictionary[grade] + 1)
elif weighted == 0 and grade in dictionary:
return "Your GPA score is : "+str(dictionary[grade])
else:
return "Invalid"
print(GPAcalc(input("Input a letter grade: "), int(input("Is it weigthed? (1= yes, 0= no)"))))
I modified the code a bit to cut down on the use of if and elif statements. If you need me to change it, I will. Best of luck.
Most likely not but I think you’ll have to log in your account like if you have an Apple phone . You’ll have to log into your Apple ID
By when a switch is closed it means the circuit is complete or closed. when the switch is open it means that the circuit is incomplete or, opened
Answer:
Iaas
Explanation:
Iaas means infrastructure as a service.it provides servers,networking elements and storage which are infrastructure elements useful to host the applications