Question: The following code contains several nested if-else statements. Unfortunately, it was written without proper alignment and indentation. Rewrite the code and use the proper conventions
The following code contains several nested if-else statements. Unfortunately, it was written without proper alignment and indentation. Rewrite the code and use the proper conventions of alignment and indentation.
if score >= A_score: print('Your grade is A.') else: if score >= B_score: print('Your grade is B.') else: if score >= C_score: print('Your grade is C.') else: if score >= D_score: print('Your grade is D.') else: print('Your grade is F.')
Step by Step Solution
3.37 Rating (163 Votes )
There are 3 Steps involved in it
if score Ascore printYour grade is ... View full answer
Get step-by-step solutions from verified subject matter experts
