userinput = int(input("Enter Number: ")) if userinput in range(10, 50): print("You are closer to 10") elif userinput in range(50, 100): print("you are closer to 100")