title: How to Manipulate an Attribute in a Class from a Method in a Separate Class python
body: <p>Suppose I have the following:</p>
  
  <pre><code>class A: 
  
    def __init__( self, Att):
      """here Att is a string input"""
      self.Att = Att
  
    def __repr__( self ):
      s = "My attribute is " + self.Att 
      return s
  
  class B: 
  
    def __init__( self, Btt):
      """here Btt is a string input"""
      self.Btt = Btt
  
    def __repr__( self ):
      s = "My other attribute is " + self.Btt 
      return s
  
    def SetEqual(self):
      Att = self.Btt 
  </code></pre>
  
  <p>I realize the <code>SetEqual</code> method above will not work. But how might I go about creating a method in <code>class B</code> that will access <code>class A</code> and change the value of <code>self.Att</code> to be equal to <code>self.Btt</code>? </p>