#computer picks a random word among given tuple
#input plaer
#comparison
#loop comparison
#computer tells the number of letters
#five guesses of LTTR
#comparison result is printed as yes or no
#then to guess a whole word
s = ('seo', 'heno', 'reno', 'veno', 'teno')
import random
v = random.choice(s)
print 'I\'ve picked a word. It\'s length is', len(v)
guess = None
guesscount = 0
while True:
if guess != '':
guess = raw_input('Try your letter\n')
guesscount += 1
if guess not in v:
print 'Nope'
if guess in v:
print 'Yes'
if guesscount == 3:
print 'Thats all your tries, now time for final dish'
break
m = raw_input('Okay now try to guess a word')
if m == v:
print 'Omedeto'
else:
print 'sry just no'
raw_input('\n\nP')
I2NvbXB1dGVyIHBpY2tzIGEgcmFuZG9tIHdvcmQgYW1vbmcgZ2l2ZW4gdHVwbGUKI2lucHV0IHBsYWVyCiNjb21wYXJpc29uCiNsb29wIGNvbXBhcmlzb24KI2NvbXB1dGVyIHRlbGxzIHRoZSBudW1iZXIgb2YgbGV0dGVycwojZml2ZSBndWVzc2VzIG9mIExUVFIKI2NvbXBhcmlzb24gcmVzdWx0IGlzIHByaW50ZWQgYXMgeWVzIG9yIG5vCiN0aGVuIHRvIGd1ZXNzIGEgd2hvbGUgd29yZAoKcyA9ICgnc2VvJywgJ2hlbm8nLCAncmVubycsICd2ZW5vJywgJ3Rlbm8nKQppbXBvcnQgcmFuZG9tCnYgPSByYW5kb20uY2hvaWNlKHMpCnByaW50ICdJXCd2ZSBwaWNrZWQgYSB3b3JkLiBJdFwncyBsZW5ndGggaXMnLCBsZW4odikKZ3Vlc3MgPSBOb25lCmd1ZXNzY291bnQgPSAwCndoaWxlIFRydWU6CglpZiBndWVzcyAhPSAnJzoKCQlndWVzcyA9IHJhd19pbnB1dCgnVHJ5IHlvdXIgbGV0dGVyXG4nKQoJCWd1ZXNzY291bnQgKz0gMQoJCWlmIGd1ZXNzIG5vdCBpbiB2OgoJCQlwcmludCAnTm9wZScKCQlpZiBndWVzcyBpbiB2OgoJCQlwcmludCAnWWVzJwoJCWlmIGd1ZXNzY291bnQgPT0gMzoKCQkJcHJpbnQgJ1RoYXRzIGFsbCB5b3VyIHRyaWVzLCBub3cgdGltZSBmb3IgZmluYWwgZGlzaCcKCQkJYnJlYWsKbSA9IHJhd19pbnB1dCgnT2theSBub3cgdHJ5IHRvIGd1ZXNzIGEgd29yZCcpCmlmIG0gPT0gdjoKCXByaW50ICdPbWVkZXRvJwplbHNlOgoJcHJpbnQgJ3NyeSBqdXN0IG5vJwoJCnJhd19pbnB1dCgnXG5cblAnKQ==