title: My while loops aren't updating or stopping
body: <p>I'm trying to update path in path 3 to 2 so it prints path 2 but it won't work. Is there anyway I can fix this?</p>
  <pre><code>def direction():
      time.sleep(0.3)
      print(&quot;=====================================================================&quot;)
      time.sleep(0.3)
      print(&quot;You look around&quot;)
      time.sleep(0.3)
      print(&quot;1 or 2?&quot;)
  while path == 2:
      print(&quot;Other path&quot;)
  while path == 3: 
      print(&quot;=====================================================================&quot;)
      time.sleep(0.3)
      print(&quot;You look down to see a bunch of tools scattered around on the floor.&quot;)
      press_enter()
      time.sleep(0.3)
      print(&quot;1. Look through tools&quot;)
      time.sleep(0.3)
      print(&quot;2. Go back&quot;)
      tools = int(input(&quot;Which way should you look? (1/2) - &quot;))
      if tools == 1:
          
          if screwdriver == 1:
              time.sleep(0.3)
              print(&quot;After searching through the tools you find a decent screwdriver.&quot;)
              screwdriver = 2
              direction()
              path = int(input(&quot;Which way should you look? (1/2/3/4) - &quot;))
          elif screwdriver == 2 or 3:
              time.sleep(0.3)
              print(&quot;There are no other tools in usable conditions.&quot;)
              direction()
              path = int(input(&quot;Which way should you look? (1/2/3/4) - &quot;))
      if tools == 2:
          direction()
          path = int(input(&quot;Which way should you look? (1/2/3/4) - &quot;))
  </code></pre>