examples/strings/number1.py
from __future__ import print_function
import random

hidden = random.choice(range(1, 201))
while True:
    user_input = raw_input("Please enter your guess[x]: ")
    print(user_input)

    if user_input == 'x':
        print("Sad to see you leaving early")
        exit()

    guess = int(user_input)
    if guess == hidden:
        print("Hit!")
        break

    if guess < hidden:
        print("Your guess is too low")
    else:
        print("Your guess is too high")