title: Can't access object attribute after instantiating object in console
body: <p>I'm using PyCharm 5.0.4 Comunity Edition and Python 2.7.</p>
  
  <p>My code looks like this, in the file carInput.py:</p>
  
  <pre><code>class carInput():
  
      def __init__(self):
         self.string = 'hi'       
  </code></pre>
  
  <p>I type the following in the console:</p>
  
  <pre><code>&gt;&gt;&gt; car = carInput.carInput()
  &gt;&gt;&gt; car
  &lt;carInput.carInput instance at 0x00000000027F3D08&gt;
  &gt;&gt;&gt; car.string
  Traceback (most recent call last):
  File "&lt;input&gt;", line 1, in &lt;module&gt;
  AttributeError: carInput instance has no attribute 'string'
  </code></pre>
  
  <p>I imagined that upon instantiating the <strong>carInput</strong> object, the <strong>init</strong>-method will always be executed, and the variable <strong>string</strong> is declared. However, when I try to access the object's <strong>string</strong> variable from the console, I am told that my object has no such attribute. What is it I have misunderstood?</p>