<s> '''<STR_LIT>''' <EOL> def main ( ) : <EOL> low = <NUM_LIT:1> <EOL> high = <NUM_LIT:100> <EOL> print ( "<STR_LIT>" . format ( low , high ) ) <EOL> print ( "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> input ( "<STR_LIT>" ) <EOL> def valid_input ( ) : <EOL> while True : <EOL> reply = input ( "<STR_LIT>" ) <EOL> if reply in ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) : <EOL> return reply <EOL> print ( "<STR_LIT>" ) <EOL> while True : <EOL> guess = ( low + high ) // <NUM_LIT:2> <EOL> print ( "<STR_LIT>" . format ( guess ) ) <EOL> reply = valid_input ( ) <EOL> if reply == '<STR_LIT>' : <EOL> low = guess <EOL> elif reply == '<STR_LIT>' : <EOL> high = guess <EOL> else : <EOL> print ( "<STR_LIT>" ) <EOL> break <EOL> if low == high : <EOL> print ( "<STR_LIT>" ) <EOL> break <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
