title: What is the difference between using self._variable and just self.variable in the constructor in Python
body: <p>for Example if I create a class Point.</p>
  
  <p>class Point:</p>
  
  <pre><code>def__init__(self, x, y):
      self._x = x
      self._y = y 
  </code></pre>
  
  <p>and </p>
  
  <p>class Point:</p>
  
  <pre><code>def__init__(self, x, y):
      self.x = x
      self.y = y 
  </code></pre>
  
  <p>what is the difference in the use of self._x and just self.x. </p>