Question: What is the wrong with the following code snippet? grade = int ( input ( Enter student grade: ) ) if grade <

What is the wrong with the following code snippet?
grade = int(input("Enter student grade: "))
if grade <=90 :
letterGrade ="A"
if grade <=80 :
letterGrade ="B"
if grade <=70 :
letterGrade ="C"
if grade <=60 :
letterGrade ="D"
else :
letterGrade ="E"
print(letterGrade)
Question 20 options:
Anyone with a grade higher than 60 will receive a "D"
The code block will not compile
Anyone with a grade higher than 60 will receive a "E"
Nothing is wrong, students will get the correct grade

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!