title: How to change parent attribute in subclass python
body: <p>I have the following class</p>
  
  <pre><code>class Foo():
      data = "abc"
  </code></pre>
  
  <p>And i subclass it</p>
  
  <pre><code>class Bar(Foo):
      data +="def"
  </code></pre>
  
  <p>I am trying to edit a parent class attribute in subclass. I want my parent class to have some string, and my subclass should add some extra data to that string. How it should be done in Python? Am i wrong by design?</p>