title: Python Classes to make List of objects
body: <p>I've made a program that lets the the user create new vehicles with certain attributes. Now I need to create an inventory function that will add each vehicle created to a list of all the vehicles and then display them. This is what I have, but it isn't working. Should I look more specifically at the inventory function?</p>
  
  <pre><code>class Inventory:
  
      def __init__(self, list1 = []):
          self.list1 = list1[:]
      def addVehicle(self, vehicle):
          self.list1.append(vehicle)
      def Display(self):
          print(self.list1)
  </code></pre>