What input values will result in an accepted output?

def isValid(num):

if ((num < 1) or (num > 10)):

raise ValueError("The number is outside of the acceptable range")

else:

return num

valid = False

while not valid:

try:

x = int(input("Enter a number between 1 and 10: "))

x = isValid(x)

valid = True

except ValueError as except_object:

print("{}".format(except_object))

print("{:d} was accepted".format(x))

The input values that will result in an accepted output are any integer values between 1 and 10 (inclusive).