title: Correct way to use accessors in Python?
body: <p>Is this how you would define a class "Car" with attribute "Speed" in Python? My background is in Java, and it seems one does not use get/set methods in Python.</p>
  
  <pre><code>class Car(object):
      def __init__(self):
          self._speed = 100
  
      @property
      def speed(self):
          return self._speed
  
      @speed.setter
      def speed(self, value):
          self._speed = value
  </code></pre>