206k views
5 votes
Write an expression that will print "in high school" if the value of user_grade is between 9 and 12 (inclusive).

User Jdw
by
5.7k points

1 Answer

5 votes

In python:

if 8 < user_grade < 13:

print("in high school")

You would just need to supply the value of the user_grade variable.

User Manoj Salvi
by
5.8k points