x = 20 print "guess a number 1 - 100:

" while 1 : guess = input ( "Number: " ) print "

" if guess < x : print "try higher

" if guess > x : print "try lower

" if guess == x : print "Well done

" if guess == x : break raw_input ()