# your code goes here
#player picks random number
#computer tries to guess
print 'Pick number between 1 and 10, including 10'
import random
x = random.randrange(11)
print 'Is your number', x, '?'
y = ''
while True:
if y != 'Correct':
y = raw_input('Input whether your guessed number is \'Correct\', \'Higher\', \'Lower\' \n')
if y == 'Lower':
x -= 1
x = random.randrange(0, x + 1)
print 'Is your number', x, '?'
elif y == 'Higher':
x += 1
x = random.randrange(x, 11)
print 'Is your number', x, '?'
elif y == 'Correct':
print 'Good game'
break
raw_input('\n\nPress \'Enter\' to exit')
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCiNwbGF5ZXIgcGlja3MgcmFuZG9tIG51bWJlcgojY29tcHV0ZXIgdHJpZXMgdG8gZ3Vlc3MKCnByaW50ICdQaWNrIG51bWJlciBiZXR3ZWVuIDEgYW5kIDEwLCBpbmNsdWRpbmcgMTAnCmltcG9ydCByYW5kb20KeCA9IHJhbmRvbS5yYW5kcmFuZ2UoMTEpCnByaW50ICdJcyB5b3VyIG51bWJlcicsIHgsICc/Jwp5ID0gJycKd2hpbGUgVHJ1ZToKCWlmIHkgIT0gJ0NvcnJlY3QnOgoJCXkgPSByYXdfaW5wdXQoJ0lucHV0IHdoZXRoZXIgeW91ciBndWVzc2VkIG51bWJlciBpcyBcJ0NvcnJlY3RcJywgXCdIaWdoZXJcJywgXCdMb3dlclwnIFxuJykKCWlmIHkgPT0gJ0xvd2VyJzoKCQl4IC09IDEKCQl4ID0gcmFuZG9tLnJhbmRyYW5nZSgwLCB4ICsgMSkKCQlwcmludCAnSXMgeW91ciBudW1iZXInLCB4LCAnPycKCWVsaWYgeSA9PSAnSGlnaGVyJzoKCQl4ICs9IDEKCQl4ID0gcmFuZG9tLnJhbmRyYW5nZSh4LCAxMSkKCQlwcmludCAnSXMgeW91ciBudW1iZXInLCB4LCAnPycKCWVsaWYgeSA9PSAnQ29ycmVjdCc6CgkJcHJpbnQgJ0dvb2QgZ2FtZScJCQoJCWJyZWFrCnJhd19pbnB1dCgnXG5cblByZXNzIFwnRW50ZXJcJyB0byBleGl0Jyk=
Pick number between 1 and 10, including 10
Is your number 6 ?
Input whether your guessed number is 'Correct', 'Higher', 'Lower'
Traceback (most recent call last):
File "prog.py", line 12, in <module>
EOFError: EOF when reading a line