title: NameError: name 'Automobile' is not defined
body: <p>Not sure why I am getting NameError: name 'Automobile' is not defined.
  Maybe someone who hasn't been staring at this for the past 20 minutes can help out. I am starting to think it might be the indention, but not too sure yet.</p>
  
  <p>vehicles.py:</p>
  
  <pre><code>class Automobile:
  
      def __init__(self, make, model, mileage, price):
          self.__make = make
          self.__model = model
          self.__mileage = mileage
          self.__price = price
  
      def set_make(self, make):
          self.__make = make
  
      def set_model(self, model):
          self.__model = model
  
      def set_mileage(self, mileage):
          self.__mileage = mileage
  
      def set_price(self, price):
          self.__price = price
  
      def get_make(self):
          return self.__make
  
      def get_model(self):
          return self.__model
  
      def get_mileage(self):
          return self.__mileage
  
      def get_price(self):
          return self.__price
  
      class Car(Automobile):
  
          def __init__(self, make, model, mileage, price, doors):
  
              Automobile.__init__(self, make, model, mileage, price)
  
              self.__doors = doors
  
          def set_doors(self, doors):
              self.__doors = doors
  
          def get_doors(self):
              return self.__doors
  </code></pre>
  
  <p>car_demo.py:</p>
  
  <pre><code>import vehicles
  
  def main():
      used_car = vehicles.Car("Audi", 2007, 12500, 21500.00, 4)
  
      print('Make:', used_car.get_make())
      print('Model:', used_car.get_model())
      print('Mileage:', used_car.get_mileage())
      print('Price:', used_car.get_price())
      print('# of doors:', used_car.get_doors())
  
  main()
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Traceback:
  import vehicles, class Automobile:, and class Car(Automobile)
  
  NameError: name 'Automobile' is not defined
  </code></pre>
  
  <p>I would've thought setting Automobile as a class defines 'Automobile'
  Any help would be appreciated.</p>
  
  <p>I am using Python 3.5.2 IDLE</p>