title: Can't access variable from another class python
body: <p>Here is my code which is supposed to print self.cake and self.age from the class Settings.</p>
  
  <pre><code>from startup import Settings
  class Profile(Settings):
      def __init__(self):
          super(Profile, self).__init__()
  
      def print_settings(self):
          print self.cake
          print self.age
  
  p = Profile()
  p. print_settings()
  </code></pre>
  
  <p>Other python script</p>
  
  <pre><code>class Settings(object):
      def __init__(self):
          self.cake = 1
  
      def number(self):
          self.age = 5
  </code></pre>
  
  <p>But I keep getting:</p>
  
  <pre><code>AttributeError: 'Profile' object has no attribute 'age'
  </code></pre>
  
  <p>I need to be able to print the variables from the print_settings function.</p>
  
  <p>What should I do?</p>