title: Having trouble understanding Python with .enter() function
body: <p>I am working out of the "Learn Python the Hard Way" book right now and I do not understand something. In one of the excersises the author uses some code I do not understand involving .enter()  </p>
  
  <pre><code>def play(self):
      current_scene = self.scene_map.opening_scene()
      last_scene = self.scene_map.next_scene(’finished’)
  
      while current_scene != last_scene:
          next_scene_name = current_scene.enter()
          current_scene = self.scene_map.next_scene(next_scene_name)
  
      current_scene.enter()
  </code></pre>
  
  <p>I still don't totally understand classes, but I mostly understand what is going on here, save for enter. I can not find any documentation on it, and any information on why it is being used and why it is there would be very helpful. Thank you so much.</p>
  
  <p>I am working out of exercises 43 in LPTHW from the newest edition. The specific part of the exercises is called Gothons from Planet Percal #25</p>