How to get Python to remember user input between classes?
<p>I'm a beginner, working on a text-based game like lots of beginners seem to. I'm using the game structure used in Learn Python The Hard Way, where each scene of the game is its own class. Here is what I mean: <a href="http://learnpythonthehardway.org/book/ex43.html" rel="nofollow">http://learnpythonthehardway.org/book/ex43.html</a></p>

<p>My problem: I want the player to name the main character via a prompt, and for that name to be remembered and recalled throughout the game. As shown above, the progression of the game is through a series of classes. Using the only input memorization method I know so far, the name received from the user's raw input is only memorized for one class (scene), and then forgotten in the next. I don't even know where to begin on figuring out how to fix this so that the name will carry on throughout the whole game/series of classes- what terms to search, what to research more, etc. </p>

<p>The only method I know right now for remembering/recalling things like names is the</p>

<pre><code>name = raw_input ("Name: ")
print "My name is %s" % name
</code></pre>

<p>kind of thing. That doesn't continue through classes, so it's forgotten by the next "scene."</p>
