subject
Computers and Technology, 26.02.2021 06:20 AM28

7.4 Code Practice: Question 2 I need help on this question and my code to get as 100% on it:

def GPAcalc(grade, weighted):
if grade. lower() == "a":
return 4
elif grade. lower() == "b":
return 3
elif grade. lower() == "c":
return 2
elif grade. lower() == "d":
return 1
elif grade. lower() == "f":
return 0
else:
return "Invalid"

print(GPAcalc(input("Enter your letter grade: "), int(input("Is it weigthed? (1= yes, 0= no)"

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
You know the right answer?
7.4 Code Practice: Question 2 I need help on this question and my code to get as 100% on it:
...
Questions
question
Chemistry, 05.05.2021 22:50
question
Mathematics, 05.05.2021 22:50