title: My While loop isn't working in python
body: <p>My while loop is not repeating even though the sentry value has not been met to break the loop. Please help.The while loop looks to me like to should not break until varaiable computernumber is equal to number</p>
  
  <pre><code>import random
  print("Hello and welcome to the AI guessing Game pick a number from 1 to 100 then press H or L to give the clue")
  number=input("pick a number from 1 to 100")
  number=int(number)
  tries = 0
  computernumber=1
  while computernumber !=(number):
      computernumber=random.randint(1,100)
      print (computernumber)
      higherorlower=input("is your number higher or lower use H or L please!")
      if higherorlower == "H":
          computernumber +=1
          tries = int(tries)
          tries +=1
          computernumber=random.randint (computernumber,number)
      else:
              computernumber -=1
              computernumber=random.randint (1,computernumber)
              tries = 0
              tries = int(tries)
              tries +=1
              print (computernumber)
  
              break
  
  if computernumber == number:
  
      if tries == 1 or 0:
  
          print("Your number was", number,"and it took me",tries,"Try")
      else:
          print("Your number was", number,"and it took me",tries,"Tries") 
  </code></pre>