#class store
#Now, let's build a store to contain our products by making a store class and putting our products into an array.

class Store(object):
    def __init__(self, products, location, owner):
        self.products = products
        self.location = location
        self.owner = owner

    def add_products(self, item):
        self.item = item
        #print item
        self.products.append(item)
        return self

    def remove_products(self, item):
        self.item = item
        #print item
        self.products.remove(item)
        return self

    def inventory(self):
        print "Store inventory " + str(self.products)
        print "Store location " + self.location
        print "Store owner " + self.owner
        return self

        

store = Store(["apple", "potato", "pepper"], "2276, westburg northfork Mn", "John Wetherbe")  

store.add_products("meat").remove_products("potato").inventory() 

017ecfbe2a892fa32a2a2896fc5bc7e906cb20d6
#class store
#Now, let's build a store to contain our products by making a store class and putting our products into an array.

class Store(object):
    def __init__(self, products, location, owner):
        self.products = products
        self.location = location
        self.owner = owner

    def add_products(self, item):
        self.item = item
        #print item
        self.products.append(item)
        return self

    def remove_products(self, item):
        self.item = item
        #print item
        self.products.remove(item)
        return self

    def inventory(self):
        print "Store inventory " + str(self.products)
        print "Store location " + self.location
        print "Store owner " + self.owner
        return self

        

store = Store(["apple", "potato", "pepper"], "2276, westburg northfork Mn", "John Wetherbe")  

store.add_products("meat").remove_products("potato").inventory() 
