title: Calling variable outside of loop
body: <p>I am not entirely sure why this is not working the way I intend it to. So I have a variable in this little path game I am coding; and q2 is what I am trying to call:</p>
  
  <pre><code>value = 420
  while value &gt; 1:
      q2 = float(input(":"))
      if q2 == 0:
          print("You cannot divide by 0!")
          continue
      value /= q2
      print(value)
      if int(value) == 8:
          print("Correct Answer")
          break
  </code></pre>
  
  <p>And Later on in the program I am trying to call the answer that was provided; to be used here:</p>
  
  <pre><code>print("You must Enter the correct code from the previous answer in the test for a call from your AGENT boss. . .")
  
  while True:
      call = input("*Voice says 'PLEASE ENTER STAR PLUS THE TWO DIGIT CODE FOR ASSISTANCE'*")
      if call == int(q2):
          print("**THE PHONE BEGINS THE RING**")
          break
      elif call != q2:
           print("This will now self destruct")
  </code></pre>
  
  <p>Hopefully I am making sense in with what I am trying to achieve; When I run this in IDLE it gives me the same line again <code>call = input("*Voice says 'PLEASE ENTER STAR PLUS THE TWO DIGIT CODE FOR ASSISTANCE'*")</code> even after I have entered the value of 'q2' </p>