Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Fix the Logic

This program should check if a number is between 1 and 10 (inclusive), but the logic is wrong. Fix it!

Example 1: Input 5 → Output In range Example 2: Input 15 → Output Out of range

💡 Hints

?Hint 1
🔒Hint 2
🔒Hint 3
python
n = int(input())
if n >= 1 or n <= 10:
print("In range")
else:
print("Out of range")