# This program asks the user to input an integer number from 1 to 10.
# If the wrong number is given, the program asks for it again.
# ValueError exception is used to see if the input value is not a number.
def main():
n = 0
while not 1 <= n <= 10:
try:
n=int(input('Enter an integer number from 1 to 10:'))
if n<1 or n>10:
print('Your number should be from 1 to 10')
except ValueError:
print('That is not a number.')
print("Got it! You entered:",n)
main()