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 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 24.06.2019 18:20
The following if statement contains a logic error, not a syntax error. rewrite it so that it is correct. assume the variable age already exists and holds a valid number. if (age == 18 & & age == 19) {
Answers: 1
question
Computers and Technology, 24.06.2019 20:10
Approximately what portion of global employers tends to use social media websites to hire new employees?
Answers: 1
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
Mathematics, 21.08.2019 05:10
Questions on the website: 13722361