← Back
🐍 Python FoundationsQ1/8
+0 XP
Python supports chained comparisons: if 1 <= x <= 10: is valid and clean. Both A and B work.

In Python, how do you check if a number is between 1 and 10?