title: How to fix: AttributeError:Class object has no attribute
body: <p>I am setting up a class, and as first step has used <code>__init__</code> function to initialize the attributes. However when I try to create an instance from that class, it shows the <code>AttributeError</code>.</p>
  
  <p>I have checked the codes again and again to see if there is anything wrong with the syntax but the error remains</p>
  
  <pre><code>class RandomWalk():
      def ___init___(self, points = 10):
          """initialize attributes of a walk"""
          self.points = points
          self.x_values = [0]
          self.y_values = [0]
  
  rw = RandomWalk()
  print(rw.points)
  </code></pre>
  
  <p>I expect the output of 10 as default value of <code>points</code>, but instead the error shows:</p>
  
  <pre><code>Traceback (most recent call last):
    File "test1.py", line 10, in &lt;module&gt;
      print(rw.points)
  AttributeError: 'RandomWalk' object has no attribute 'points'
  </code></pre>
  
  <p>The issue remains if I replace attribute <code>points</code> with either <code>x_values</code> or <code>y_values</code></p>