112k views
4 votes
Input a grade level (freshman, sophomore, junior, or senior) and print the corresponding grade number [9-12]. if it is not one of those grade levels, print not in high school.

hint: since this lesson uses else-if statements, remember to use at least one else-if statement in your answer to receive full credit

sample run 1
what year of high school are you in? freshman
sample output 1
you are in grade: 9
sample run 2
what year of high school are you in? kindergarten
sample output 2
not in high school

User Greig
by
3.9k points

1 Answer

7 votes

Answer:

# Code was tested and is functional on Online IDLE Programiz (Python)

User Granger
by
3.3k points