224k views
20 votes
Write an if-else statement that determines whether the variable points is outside the range of 9 to 51. If points is outside the range,

"Invalid Points" should be displayed. Otherwise, "valid Points" should be displayed.

User Icare
by
5.4k points

1 Answer

9 votes

Answer: Using Python

Step-by-step explanation:

num = int(input("Enter number > "))

if num in range (9, 52):

print("Valid Points")

else:

print("Invalid Points ")

User Dragn
by
4.6k points