title: Referencing self variables outside of original class
body: <pre><code>class player(object):
      def __init__(self):
          self.health = 100
          self.stats = {'STR': 0,
                       'DEF':0}
  
  class create_character(object):
      def choose_class(self):
          inp = input("Please choose a class!: ").lower()
          s = ("Knight, Archer, or Mage")
          print(s)
          if inp == 'knight':
              self.stats['STR'] = 15
              self.stats['DEF'] = 15
              print(self.stats)
  </code></pre>
  
  <p>The problem I'm facing currently, is that when I reference self.stats under create_character, it tells me that specific class doesn't have a 'self.stats'.  If I try player.self.stats or player.stats, it tells me the same thing, that the class doesn't have those attributes.  How can I reference a dictionary or a variable from another class, and change its properties.  Also, when I print self.health, or self.stats, or self.name or whatever properties the player class hold, it gives me a bunch of unneeded information.  Is there a way to exclude the extra information?</p>