title: I'm trying to create a number guessing game but when I run this it keeps running the while loop and doesnt break out
body: <p>I'm trying to create a number guessing game but when I run this it keeps running the while loop and doesnt break out. (very new to python by the way) thanks!</p>
  <pre><code>from random import randint
  name1 = input(&quot;What is Player One's first name? &quot;)
  name2 = input(&quot;What is Player Two's first name? &quot;)
  cnumber = randint(1,25)
  guess1 = &quot;&quot;
  guess2 = &quot;&quot;
  times_guessed1 = 0
  times_guessed2 = 0
  
  while guess1 != cnumber and guess2 != cnumber:
      guess1 = input(name1 + &quot; guess a number between 1 and 25: &quot;)
      times_guessed1 += 1
      guess2 = input(name2 + &quot; guess a number between 1 and 25: &quot;)
      times_guessed2 += 1
  
  if guess1 == cnumber:
      print (name1, &quot;wins!&quot;)
      print (&quot;You guessed,&quot;, times_guessed1, &quot;times.&quot;)
  elif guess2 == cnumber:
      print (name2, &quot;wins!&quot;)
      print (&quot;You guessed,&quot;, times_guessed2, &quot;times.&quot;)
  </code></pre>