Question: Write an expression that will print "in high school" if the value of user_grade is between 9 and 12 (inclusive).
Code:
user_grade = 10
if 9<=user_grade<=12:
print('in high school')
else:
print('not in high school')
Question: user_grade = 10
if 9<=user_grade<=12:
print('in high school')
else:
print('not in high school')
No comments:
Post a Comment