A Python program to check whether a given number is in between 1 and 10.

#to know if a given number is in between 1 and 10.
x = int(input("Enter a number: "))
if x>=1 and x<=10:
    print('You typed', x, "which lies between 1 and 10.")
else:
    print('You typed', x, "which does not lies between 1 and 10.")

OUTPUT:
Enter a number: 6
You typed 6 which lies between 1 and 10.