text: from random import randint
  
  
  def main():
  
      number = randint(1, 100)
      print(number)
  
      name = input('what is your name ')
  
      guess = None
      while guess != number:
          guess = int(input('Guess a number '))
  
          if guess < number:
              print('Sorry {1}, {0} is lower than ther number'.format(
                  guess, name))
          elif guess > number:
              print('{} is higher than ther number'.format(guess))
          else:
              print('Yes!, you got it right with {}'.format(guess))
  
  
  if __name__ == '__main__':
      main()
  