title: How would I return up to a higher up line and have it execute in Python?
body: <p>I'm fairly new to programming and am trying to create a very simplistic dungeon game.  I have most it working but I'm having a slight issue. Here is my code:</p>
  
  <pre><code>print("Welcome to Matt's Dungeon!")
  
  user = ""
  stop = "q"
  
  while user != "q":
  first = input("You are in the kitchen. There are doors to the south (s) and east (e). ")
  if first == "s":
      print("You entered the furnace and fry yourself to death!")
      break
  elif first == "q":
      break
  elif first == "e":
      second = input("You are in the hallway. There are doors to the west (w), south (s), and east (e). ")
      if second == "w":
          first == "s"
      elif second == "q":
          break
      elif second == "e":
          print("You are in the library. You found the princess! You are a hero!")
          break
      elif second == "s":
          third = input("You are in the living room. There are doors to the west (w) and north (n). ")
          if third == "w":
              print("You entered the furnace and fry yourself to death!")
              break
          elif third == "n":
              first == "e"
          elif third == "q":
              break
  
  
  print("Goodbye!")
  </code></pre>
  
  <p>The issue that I'm having is that if the user enters "n" in the living room I want it to go back to the hallway but the program always sends it back to the original kitchen.  However, if the user enters "w" in the hallway this works fine and returns it to the previous room, the kitchen.  Any ideas on how I might be able to fix this? Thank you in advance for any help!</p>