title: Python 2.7.9 - How to save a raw_input in a variable to use it later?
body: <p>This is a bit of code from my text based game:</p>
  
  <pre><code>location_now = ""
  
  class what_do:
  
      def whaat(self):
          interactions = what_do()
          print "*What will you do? Type help_ to see all the actions*"
          what = raw_input("")
          if what == "help_":
              print ' '.join(help_)
              interactions.whaat()
          if what == "travel":
              print "These are all the cities you can travel to:"
              mapje.map()
              travel = raw_input("To which city do you want to travel?(Takes 10 seconds)")
              if travel == locations[0] or travel == locations[1] or travel == locations[2] or travel == locations[3] or travel == locations[4] or travel == locations[5] or travel == locations[6] or travel == locations[7] or travel == locations[8]:
                  print "You are now travelling to %s" % travel
                  time.sleep(10)
                  print "You are now in %s!" % travel
                  location_now = travel
              else:
                  print "That is no location in Skyrim!"
                  interactions.whaat()
  </code></pre>
  
  <p>I want the input from <code>travel = raw_input</code> etc. to be stored and saved in the variable <code>location_now</code> (That I created before and outside the class). I have to use that input later in my code. </p>
  
  <p>This class will be repeated because it is a sort of 'What would you like to do next?', so if the input from the second time, <code>what = raw_input("")</code>, is asked, it must replace the earlier input stored in <code>location_now = ""</code> </p>