Final answer:
To solve this problem in Python, use an if-elif-else statement to check the input grade number and print the corresponding classification.
Step-by-step explanation:
In Python, you can use an if-elif-else statement to check the input grade number and print the corresponding classification. Here is the code:
grade = int(input('What grade are you in? '))
if grade == 9:
print('Freshman')
elif grade == 10:
print('Sophomore')
elif grade == 11:
print('Junior')
elif grade == 12:
print('Senior')
else:
print('Not in High School')
When the input is 10, the output would be Sophomore. When the input is 5, the output would be Not in High School.