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 intinputEnter student grade:
if grade :
letterGrade A
if grade :
letterGrade B
if grade :
letterGrade C
if grade :
letterGrade D
else :
letterGrade E
printletterGrade
Question options:
Anyone with a grade higher than will receive a D
The code block will not compile
Anyone with a grade higher than 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
